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 manufacture.visible GROUP BY tovar.manufacture_id ORDER BY manufacture.he' at line 1SELECT manufacture.header,manufacture.id,manufacture.country FROM tovar LEFT JOIN manufacture ON (tovar.manufacture_id = manufacture.id) WHERE tovar.catalog_id IN() AND manufacture.visible GROUP BY tovar.manufacture_id ORDER BY manufacture.header