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 'AND C.object_id = 1305 AND C.object_collection_id =' at line 1 at /home/vi-2017/dverovozik.ru/docs/object.php line 30
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 'AND C.object_id = 1305 AND C.object_collection_id =' at line 1
    [query] => SELECT C.object_id, OC.surface_id, OC.color_id, CO.color_name, CO.color_image FROM catalog AS C LEFT JOIN object_colors AS OC ON C.object_id = OC.object_id LEFT JOIN colors AS CO ON OC.color_id = CO.color_id WHERE C.object_name = '' AND C.object_doors_type_id =  AND C.object_id = 1305 AND C.object_collection_id = 
    [context] => /home/vi-2017/dverovozik.ru/docs/object.php line 30
)