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!=0 ORDER BY `dateline` ASC' at line 1
SELECT attachment FROM forum_attachment_ WHERE tid= AND isimage!=0 ORDER BY `dateline` ASC

PHP Debug

No.FileLineCode
1forum.php72require(%s)
2source/module/forum/forum_viewthread.php26showmessage(%s)
3source/function/function_core.php1422dshowmessage(%s, %s, Array, Array, %d)
4source/function/function_message.php237include(%s)
5data/template/2_2_common_showmessage.tpl.php2include(%s)
6data/template/2_2_common_header_forum_viewthread.tpl.php32discuz_database::fetch_first(%s)
7source/class/discuz/discuz_database.php92discuz_database::query(%s, Array, false, false)
8source/class/discuz/discuz_database.php137db_driver_mysqli->query(%s, false, false)
9source/class/db/db_driver_mysqli.php147db_driver_mysqli->halt(%s, %d, %s)
10source/class/db/db_driver_mysqli.php222break()
gamerclub.jp エラーが記録されました、この度は誠に申し訳ありませんでした。.