SQL Error: 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 'WHERE `ln` = 'ru' OR `ln` IS NULL ORDER BY `sort_order`, `datetime` DESC, `' at line 3 at /home/school/data/www/schoolinfo.com.ua/lib/content.lib.php5 line 66
Array
(
    [code] => 1064
    [message] => 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 'WHERE `ln` = 'ru' OR `ln` IS NULL
    ORDER BY `sort_order`, `datetime` DESC, `' at line 3
    [query] => 
    SELECT c.`id` AS ARRAY_KEY, c.*, cl.`title`, cl.`ln`
    FROM   #. `content` c JOIN   #. `content_lndata` cl USING (`id`)
    WHERE `ln` = 'ru' OR `ln` IS NULL
    ORDER BY `sort_order`, `datetime` DESC, `title`
    
    [context] => /home/school/data/www/schoolinfo.com.ua/lib/content.lib.php5 line 66
)