Error executing query: 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 ')' at line 1 SELECT *, `lt`.* FROM `news` as `t` LEFT JOIN `news_lang` AS lt ON t.`id`=lt.`id` WHERE `t`.`active`='1' AND ()