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 'AND tbll.id_lang=6' at line 4
SELECT tb.id_page, tb.color, tb.colorpopup, tb.imgfond, tb.width, tb.height, tb.opacity, tb.viecookieheure, tb.viecookieminute, tb.tempsaffichage, tbll.description, tb.display, tb.mode FROM (ps_dommessage_page tb INNER JOIN ps_dommessage_page_category tbl ON (tb.id_page=tbl.id_page)) INNER JOIN ps_dommessage_page_lang tbll ON (tb.id_page=tbll.id_page) WHERE tb.active=1 AND tbl.id_category= AND tbll.id_lang=6