Query SELECT entry_id menu_e_id, entry_title menu_e_title, entry_shortname menu_e_shrt FROM entries WHERE entry_type_id = 1 AND entry_public = 1 AND entry_id > 1 AND entry_parent = ORDER BY entry_order failed with error 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 'ORDER BY entry_order' at line 7