Discuz! Database Error

(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 '-6,6' at line 1
SELECT a.tid,a.fid,a.subject,a.message,a.first,a.author,a.authorid,a.dateline,b.aid,c.views,c.replies,c.recommend_add,c.attachment,c.cover,c.displayorder,c.tid tids FROM forum_post a LEFT JOIN forum_attachment b ON a.tid=b.tid LEFT JOIN forum_thread c ON b.tid=c.tid GROUP BY a.tid HAVING a.fid IN(40,46) AND c.attachment=2 AND c.displayorder=0 ORDER BY a.dateline DESC LIMIT -6,6

PHP Debug

No.FileLineCode
1plugin.php47include(%s)
2source/plugin/nanmanlan_mojing_template/more.inc.php31discuz_database::query(%s)
3source/class/discuz/discuz_database.php137db_driver_mysqli->query(%s, false, false)
4source/class/db/db_driver_mysqli.php147db_driver_mysqli->halt(%s, %d, %s)
5source/class/db/db_driver_mysqli.php222break()
www.jiepaike.net 已经将此出错信息详细记录, 由此给您带来的访问不便我们深感歉意.