select count(t1.ctproduct_id) as totalctproducts from trdmg_ctproducts as t1 where t1.ctcat_id=85 and site_lang="ru" and t1.ctproduct_locked=0 and t1.ctbrand_id in()
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 ')' at line 1