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 <9851' at line 1
select max(aid) as aid from portal_articled_title where catid= and aid <9851

PHP Debug

1portal.php454require_once('E:\huaxia3 ...')
2source/module/portal/portal_distview.php39discuz_database::result_first('select max ...')
3source/class/discuz/discuz_database.php117discuz_database::query('select max ...', Array, false, false)
4source/class/discuz/discuz_database.php136db_driver_mysql->query('select max ...', false, false)
5source/class/db/db_driver_mysql.php153db_driver_mysql->halt('You have a ...', 1064, 'select max ...')
www.huaxia369.com 已经将此出错信息详细记录, 由此给您带来的访问不便我们深感歉意. Need Help?