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 isimage = '1' ORDER BY `dateline` DESC limit 0 , 1' at line 1
SELECT * FROM forum_attachment_ WHERE `tid`= AND isimage = '1' ORDER BY `dateline` DESC limit 0 , 1

PHP Debug

No.FileLineCode
1forum.php68require(%s)
2source/module/forum/forum_viewthread.php211showmessage(%s, %s, Array, Array)
3source/function/function_core.php1432dshowmessage(%s, %s, Array, Array, %d)
4source/function/function_message.php237include(%s)
5data/template/15_21_common_showmessage.tpl.php2include(%s)
6data/template/15_21_common_header_forum_viewthread.tpl.php49discuz_database::fetch_all(%s)
7source/class/discuz/discuz_database.php106discuz_database::query(%s, Array, false, false)
8source/class/discuz/discuz_database.php142db_driver_mysqli->query(%s, false, false)
9source/class/db/db_driver_mysqli.php148db_driver_mysqli->halt(%s, %d, %s)
10source/class/db/db_driver_mysqli.php223break()
www.0856st.com 已经将此出错信息详细记录, 由此给您带来的访问不便我们深感歉意.