Ошибка: 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 site_products.id_group = site_groups.id)' at line 5
SELECT * FROM site_groups WHERE parent = ? AND EXISTS ( SELECT * FROM site_products_models LEFT JOIN site_products ON site_products.id = site_products_models.id_product WHERE site_products_models.id_model IN () AND site_products.id_group = site_groups.id)