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 status=1' at line 1
SELECT count(*) AS num FROM tom_tongcheng WHERE 1 AND user_id= AND status=1

PHP Debug

No.FileLineCode
1plugin.php47include(%s)
2source/plugin/tom_tongcheng/tom_tongcheng.inc.php569include(%s)
3source/plugin/tom_tongcheng/module/info.php246table_tom_tongcheng->fetch_all_count(%s)
4source/plugin/tom_tongcheng/table/table_tom_tongcheng.php104discuz_database::fetch_first(%s, Array)
5source/class/discuz/discuz_database.php94discuz_database::query(%s, Array, false, false)
6source/class/discuz/discuz_database.php142db_driver_mysqli->query(%s, false, false)
7source/class/db/db_driver_mysqli.php148db_driver_mysqli->halt(%s, %d, %s)
8source/class/db/db_driver_mysqli.php223break()
wbcr.cn 已经将此出错信息详细记录, 由此给您带来的访问不便我们深感歉意.