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 'order by dateline asc limit 0,1' at line 1
SELECT * FROM forum_attachment_0 WHERE tid= order by dateline asc limit 0,1

PHP Debug

No.FileLineCode
1forum.php71require(%s)
2source/module/forum/forum_viewthread.php26showmessage(%s)
3source/function/function_core.php1426dshowmessage(%s, %s, Array, Array, %d)
4source/function/function_message.php239include(%s)
5data/template/43_20_common_showmessage.tpl.php2include(%s)
6data/template/43_20_common_header_forum_viewthread.tpl.php28discuz_database::fetch_first(%s)
7source/class/discuz/discuz_database.php92discuz_database::query(%s, Array, false, false)
8source/class/discuz/discuz_database.php137db_driver_mysql->query(%s, false, false)
9source/class/db/db_driver_mysql.php152db_driver_mysql->halt(%s, %d, %s)
10source/class/db/db_driver_mysql.php223break()
bbs.wisenjoy.com 已经将此出错信息详细记录, 由此给您带来的访问不便我们深感歉意. Need Help?