SELECT c.content_id, c.parent_id, c.content_type, ctl.content_type_label, c.content_title_main, c.weight, c.created, cl.modified, cl.content_title, cl.content_title_alt, cl.content_teaser, cl.content_text, cl.seo_title, cl.seo_description, cl.seo_keywords, cl.content_published FROM content c INNER JOIN content_type ct ON ct.content_type = c.content_type LEFT OUTER JOIN content_type_lang ctl ON ctl.content_type = c.content_type AND ctl.lang = 'ru' LEFT OUTER JOIN content_lang cl ON cl.content_id = c.content_id AND cl.lang = 'ru' WHERE c.content_id = ORDER BY cl.modified DESC LIMIT 0,1

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY cl.modified DESC LIMIT 0,1' at line 23