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 '39') AND t.isgroup='0' AND t.displayorder>='0′ ORDER BY t.lastpost DESC' at line 3
SELECT DISTINCT t.*, ti.attachment as attachmenturl, ti.remote FROM `forum_thread` t INNER JOIN `forum_threadimage` ti ON t.tid=ti.tid WHERE t.readperm='0′ AND t.fid IN ('39') AND t.isgroup='0' AND t.displayorder>='0′ ORDER BY t.lastpost DESC;

PHP Debug

No.FileLineCode
1portal.php32require_once(%s)
2source/module/portal/portal_index.php32include_once(%s)
3data/template/2_diy_portal_index.tpl.php167include(%s)
4data/template/2_2_common_footer.tpl.php180output()
5source/function/function_core.php1027block_updatecache(%s)
6source/function/function_block.php237block_thread->getdata(Array, Array)
7source/class/block/forum/block_thread.php361discuz_database::query(%s)
8source/class/discuz/discuz_database.php136db_driver_mysql->query(%s, false, false)
9source/class/db/db_driver_mysql.php153db_driver_mysql->halt(%s, %d, %s)
10source/class/db/db_driver_mysql.php224break()
www.ejiew.net Ѿ˳Ϣϸ¼, ɴ˸ķʲǸ. Need Help?