class.mysql.php : 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '?search_state=124912?search_state_name=Greater London?page=3) WHERE news.status ' at line 4 - SELECT news.*, photos.*, photos.photo_filename AS icon, photos.photo_desc AS icon_desc FROM ogl24_news_pl AS news LEFT JOIN ogl24_news_photos AS photos ON photos.photo_news_id = news.id AND photos.photo_main = 'YES' INNER JOIN ogl24_news_places AS places ON places.news_id = news.id AND places.item_type = 'ANNOUNCEMENT_CATEGORY' AND places.item_id IN (1056,1832?search_state=124912?search_state_name=Greater London?page=3) WHERE news.status = 1 AND news.publication_date <= CURRENT_DATE() ORDER BY publication_date DESC, create_date DESC LIMIT 0,6