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 orderid asc ,id desc' at line 1

select id,caption from download where langu='tw' and isshow=1 and postdate <= curdate() and (enddate >= curdate() or enddate='0000-00-00') and id <> order by orderid asc ,id desc

Filename: models/Download_Model.php

Line Number: 166