An error occurred executing the following query, and page execution has been terminated.

SELECT contentID, contTitle, section, displayDate, startDate, seoURL, shortIntro, mainContent, picTitle, picFile, edEventDate, groupColour, linkName, eventLocation, publication, document , (SELECT m_value FROM tbltotalswindonContentMeta WHERE m_contentID = contentID AND m_key = 'Advertiser') AS Advertiser FROM tbltotalswindonContentLive c JOIN tbltotalswindonEventDates e ON e.edContentID = c.contentID JOIN tbltotalswindonGroups g ON g.groupID = c_groupID LEFT JOIN tbltotalswindonContentImagesLive i ON i.picID = (SELECT TOP 1 il.picID FROM tbltotalswindonContentImagesLive il WHERE il.picContentID = c.contentID AND il.status = 'live' AND (il.picPosition = '' OR il.picPosition IS NULL OR il.picPosition = 'main') ORDER BY picDisplayOrder ASC) AND i.status = 'live' WHERE c.contentID = e.edContentID AND c.mastersection = 'events' AND ((c_groupID = '1' AND section = 'Mothers%20Day') OR (c_groupID = '0' AND section = 'Family%20Events') OR (c_groupID = '0' AND section = 'Family%20Sport%20&%20Fitness') OR (c_groupID = '0' AND section = 'Kids') OR (c_groupID = '0' AND section = 'Outdoor%20Activities') OR (c_groupID = '0' AND section = 'Children''''''''s%20Theatre') OR (c_groupID = '0' AND section = 'Circus') OR (c_groupID = '0' AND section = 'Exhibitions') OR (c_groupID = '0' AND section = 'Family%20Events') OR (c_groupID = '0' AND section = 'Film') OR (c_groupID = '0' AND section = 'Kids') OR (c_groupID = '0' AND section = 'Theatre') OR (c_groupID = '0' AND section = 'Arts%20&%20Crafts') OR (c_groupID = '0' AND section = 'Family%20Events') OR (c_groupID = '0' AND section = 'Parenting%20Events') OR (c_groupID = '0' AND section = 'Golf%20-%20Kids') OR (c_groupID = '0' AND section = 'Kids') OR (c_groupID = '0' AND section = 'Martial%20Arts%20-%20Kids') OR (c_groupID = '0' AND section = 'Swimming%20(all%20ages)') OR (c_groupID = '7') OR (c_groupID = '%20%203') OR (c_groupID = '%202')) AND c.status = 'live' AND c_groupID IN ('7','0','0','0','0') AND c.startDate <= '4/26/2024 21:06:12' AND (c.endDate = '01/01/2000' OR c.endDate >= '4/26/2024 21:06:12') AND (contAccess >= '' OR contAccess = '0') AND e.edEventDate >= '4/26/2024 21:06:12' AND (e.edEventDate BETWEEN '4/26/2024' AND '4/28/2024') ORDER BY e.edEventDate ASC

Error Description : [Microsoft][ODBC SQL Server Driver][SQL Server]Conversion failed when converting the varchar value '%20%203' to data type int.

Page of error : /events/calendar/index.asp

Query String :

weekstart=07%252F12%252F2020&groupids=7,%25201,%25203,%25202,%252010&category=1**Mothers%2520Day,%25202**Family%2520Events,%25202**Family%2520Sport%2520-and-%2520Fitness,%25202**Kids,%25202**Outdoor%2520Activities,%25203**Children%27%27s%2520Theatre,%25203**Circus,%25203**Exhibitions,%25203**Family%2520Events,%25203**Film,%25203**Kids,%25203**Theatre,%25207**Arts%2520-and-%2520Crafts,%25207**Family%2520Events,%25207**Parenting%2520Events,%252010**Golf%2520-%2520Kids,%252010**Kids,%252010**Martial%2520Arts%2520-%2520Kids,%252010**Swimming%2520(all%2520ages)