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 fid=895 AND displayorder>=0 AND status!=37 ORDER BY replies DESC LIMIT 50' at line 1
SELECT * FROM forum_thread WHERE tid> AND fid=895 AND displayorder>=0 AND status!=37 ORDER BY replies DESC LIMIT 50

PHP Debug

No.FileLineCode
1forum.php68require(%s)
2source/module/forum/forum_forumdisplay.php1018table_forum_thread->put_thread_in_cache(%s)
3source/class/table/table_forum_thread.php179discuz_database::query(%s, Array)
4source/class/discuz/discuz_database.php140db_driver_mysql_slave->query(%s, false, false)
5source/class/db/db_driver_mysql_slave.php63db_driver_mysql->query(%s, false, false)
6source/class/db/db_driver_mysql.php156db_driver_mysql->halt(%s, %d, %s)
7source/class/db/db_driver_mysql.php223break()
jzb.com 已经将此出错信息详细记录, 由此给您带来的访问不便我们深感歉意. Need Help?