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 'c.center IN (34,52,53) and p.prod_info_id=c.prod_info and p.active='1' group by ' at line 1