Could not successfully run query (SELECT * FROM category WHERE categoryid= ORDER BY categoryorder asc) from DB: 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 categoryorder asc' at line 4