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 'as next_latest FROM topics_filtered WHERE (topics_filtered.cat_id IN ('234'...' at line 1
SELECT topics_filtered.topic_id , topics_filtered. as next_latest FROM topics_filtered WHERE (topics_filtered.cat_id IN ('234', '235', '376', '421', '101', '135', '261', '516', '517', '438', '345')) AND filtered >= 2 ORDER BY commented DESC LIMIT 100
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 'as next_latest FROM topics_filtered WHERE (topics_filtered.cat_id IN ('234'...' at line 1
SELECT topics_filtered.topic_id , topics_filtered. as next_latest FROM topics_filtered WHERE (topics_filtered.cat_id IN ('234', '235', '376', '421', '101', '135', '261', '516', '517', '438', '345')) AND filtered >= 2 ORDER BY commented DESC LIMIT 100