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 `d`.`addtime` desc LIMIT 1' at line 6
SELECT `c`.`detail_id`, `c`.`cat_id`, `d`.`title` FROM (`pm_cate_det` as c) JOIN `pm_detail` as d ON `c`.`detail_id` = `d`.`detail_id` WHERE `c`.`cat_id` IN (NULL) AND `d`.`addtime` < ORDER BY `d`.`addtime` desc LIMIT 1
Filename: /opt/paimai/application/models/main_model.php
Line Number: 258