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 'OR menu_item.menu_item_id = ) AND menu_item.published = 1 ORDER BY menu_item.por' at line 1