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 'ANDuid=158 AND status!=1 ORDER BY uptime DESC' at line 1
SELECT COUNT(*) FROM lev_award WHERE typeid=1 ANDuid=158 AND status!=1 ORDER BY uptime DESC

PHP Debug

No.FileLineCode
1plugin.php52include(%s)
2source/plugin/levaward/levaward.inc.php71lev_base::levpages(%s, %s, %d, %d, %s)
3source/plugin/levaward/lev_base.php442discuz_database::result_first(%s)
4source/class/discuz/discuz_database.php118discuz_database::query(%s, Array, false, false)
5source/class/discuz/discuz_database.php137db_driver_mysql->query(%s, false, false)
6source/class/db/db_driver_mysql.php152db_driver_mysql->halt(%s, %d, %s)
7source/class/db/db_driver_mysql.php223break()
test.boyi188.com 已经将此出错信息详细记录, 由此给您带来的访问不便我们深感歉意.