DaoException

DaoException: [2]: 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 p.publish_time DESC, r.position ASC' at line 1 (/home/dailypicdump/public/dailypicdump.com/public/app/dao/ActiveRecord.php:602)

#0 /home/dailypicdump/public/dailypicdump.com/public/app/dao/ActiveRecord.php(167): ActiveRecord->execute(Object(Query))
#1 /home/dailypicdump/public/dailypicdump.com/public/app/controller/PostController.php(65): ActiveRecord->queryPaged(9, '2087')
#2 /home/dailypicdump/public/dailypicdump.com/public/app/controller/PostController.php(44): PostController->listAction()
#3 /home/dailypicdump/public/dailypicdump.com/public/app/application/Application.php(38): PostController->processRequest()
#4 /home/dailypicdump/public/dailypicdump.com/public/app/application/Application.php(31): Application->processRequest()
#5 /home/dailypicdump/public/dailypicdump.com/public/index.php(10): Application->run()
#6 {main}