Code: 1064
SELECT t.thread_subject FROM {DB_PREFIX}threads AS t
                      INNER JOIN {DB_PREFIX}forums AS f USING(forum_id)
                     WHERE t.forum_id IN('4','5','6','7','10','11') AND t.thread_id= GROUP BY t.forum_id
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'GROUP BY t.forum_id' at line 3