MySQL[1064]: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 ') AND c.enabled=1 AND c.products_count>0 ORDER BY c.sort_order DESC, t.name ASC' at line 1

SELECT c.id, c.rwurl, t.name, t.full_name FROM spr_tmc_categories c LEFT JOIN spr_tmc_categories_text t ON t.id=c.id AND t.lang="ru" WHERE c.level=2 AND c.id IN () AND c.enabled=1 AND c.products_count>0 ORDER BY c.sort_order DESC, t.name ASC