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 aid != 0 ORDER BY RAND() limit 30' at line 1
SELECT aid,title FROM portal_article_title WHERE catid= and aid != 0 ORDER BY RAND() limit 30

PHP Debug

No.FileLineCode
1portal.php32require_once(%s)
2source/module/portal/portal_view.php23showmessage()
3source/function/function_core.php1417dshowmessage(%s, %s, %s, Array)
4source/function/function_message.php239include(%s)
5data/template/15_13_common_showmessage.tpl.php1hookscriptoutput()
6source/function/function_core.php1208hookscript()
7source/function/function_core.php1168plugin_d7z_xiangguan->view_article_side_bottom_output(Array)
8source/plugin/d7z_xiangguan/xiangguan.class.php29getRelArticles(%s)
9source/plugin/d7z_xiangguan/xiangguan.class.php21discuz_database::fetch_all(%s)
10source/class/discuz/discuz_database.php100discuz_database::query(%s, Array, false, false)
11source/class/discuz/discuz_database.php136db_driver_mysql->query(%s, false, false)
12source/class/db/db_driver_mysql.php153db_driver_mysql->halt(%s, %d, %s)
13source/class/db/db_driver_mysql.php224break()
www.zw100.net 已经将此出错信息详细记录, 由此给您带来的访问不便我们深感歉意. Need Help?