ERROR: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 7
IN: SELECT COUNT(reparts.id) as cc FROM reparts JOIN post ON reparts.post_id = post.id JOIN brands ON reparts.brkod = brands.kod_br AND brands.vis_typ = 1 INNER JOIN sv_0 ON reparts.kod = sv_0.kod AND reparts.brkod = sv_0.brkod WHERE reparts.brkod = 1526 AND post_id IN (SELECT post_id FROM `branches`))