Invalid query: select bigURL as bigImg, smallURL as smallImg from Images where Category = order by CustomOrder
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 CustomOrder' at line 1