Неверный запрос SELECT goods.id FROM goods LEFT JOIN categgood ON goods.id = categgood.idg LEFT JOIN vendors ON goods.idvendor = vendors.id LEFT JOIN good_types ON goods.idtype = good_types.id LEFT JOIN pricematras ON goods.id = pricematras.idgood WHERE goods.invisible = 0 AND good_types.invisible = 0 AND good_types.idparent <> 5555 AND (goods.price <> 0 OR pricematras.price <> 0 OR goods.has_modules > 0) AND vendors.id <> 81 AND goods.id in () GROUP BY goods.id
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 ') GROUP BY goods.id' at line 8