SELECT literatureid FROM literature_literature WHERE literatureid != ORDER BY datecreated DESCYou 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 datecreated DESC' at line 1