Could not run query: 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 CASE io.extraInfo WHEN "" THEN "9999" ELSE io.extraInfo END' at line 1Query:SELECT * from image i, object o, image_object io WHERE ((i.imageID = io.imageID) and (o.objectID = io.objectID)) AND o.objectID = ORDER BY CASE io.extraInfo WHEN "" THEN "9999" ELSE io.extraInfo END