SQL error: 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 ') ) AND (city='Colombo' OR city is null) AND (country='Sri Lanka') group by ...' at line 1\b
Original query: SELECT SQL_CACHE count(topic_id) as count,category_id from forum_data where status='1' and ( category_id in () ) AND (city='Colombo' OR city is null) AND (country='Sri Lanka') group by category_id