SQL 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 'GROUP BY IT.name ORDER BY IT.order DESC, IT.name ASC' at line 1 at /home/vi-2017/dverovozik.ru/docs/impl_firm.php line 95
Array
(
    [code] => 1064
    [message] => 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 IT.name ORDER BY IT.order DESC, IT.name ASC' at line 1
    [query] => SELECT IT.id, IT.name, IOC.object_id, IOC.color_id, IM.implement_type_id FROM implement_type AS IT LEFT JOIN implement AS IM ON IT.id = IM.implement_type_id LEFT JOIN implement_object_colors AS IOC ON IM.implement_id = IOC.object_id WHERE IM.implement_producer_id =  GROUP BY IT.name ORDER BY IT.order DESC, IT.name ASC
    [context] => /home/vi-2017/dverovozik.ru/docs/impl_firm.php line 95
)