Error Number: 1064

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 `c`.`listorder` desc, `c`.`id` desc' at line 5

SELECT `c`.*, `m`.`name`, `m`.`tablename` FROM (`wl_category` as c) LEFT JOIN `wl_model` as m ON `c`.`modelid` = `m`.`id` WHERE ORDER BY `c`.`listorder` desc, `c`.`id` desc

Filename: /home/storage/web/sugimoto/

Line Number: 229