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 ') and b.aid!='' ORDER BY a.dateline DESC LIMIT 0,' 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 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() and b.aid!='' ORDER BY a.dateline DESC LIMIT 0,

PHP Debug

No.FileLineCode
1portal.php32require_once(%s)
2source/module/portal/portal_index.php32include_once(%s)
3data/template/29_diy_portal_index.tpl.php45discuz_database::fetch_all(%s)
4source/class/discuz/discuz_database.php103discuz_database::query(%s, Array, false, false)
5source/class/discuz/discuz_database.php139db_driver_mysql->query(%s, false, false)
6source/class/db/db_driver_mysql.php152db_driver_mysql->halt(%s, %d, %s)
7source/class/db/db_driver_mysql.php223break()
newsock.asia 已经将此出错信息详细记录, 由此给您带来的访问不便我们深感歉意.