ERROR # in :
SELECT cml.*, cm.dynamic FROM cms_menuitems_languages as cml LEFT JOIN cms_menuitems as cm ON cml.menuitem_id = cm.id_menuitem WHERE cml.menuitem_id = AND cml.language_id = 1;
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 'AND cml.language_id = 1' at line 6