Ошибка (databaseException): 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 '2010" limit 0,1' at line 14 in query: SELECT h.id FROM cms3_hierarchy h LEFT JOIN cms3_objects o ON o.id = h.obj_id LEFT JOIN cms3_object_types t ON o.type_id = t.id LEFT JOIN cms3_object_field_groups g ON o.type_id = g.type_id LEFT JOIN cms3_fields_controller c ON c.group_id = g.id left JOIN cms3_object_fields f ON f.id = c.field_id LEFT JOIN cms3_object_content d ON c.field_id = d.field_id AND o.id = d.obj_id WHERE f.id = 383 AND o.type_id=112 AND RIGHT(d.varchar_val,2)="а"" AND replace(o.name," ","")="2010" limit 0,1

Показать отладочную информацию