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 and pid <>1021 order by pid desc limit 3' at line 1
select * from designm_works where uid = and status = 1 and pid <>1021 order by pid desc limit 3

PHP Debug

No.FileLineCode
1plugin.php47include(%s)
2source/plugin/designm/works.inc.php54lev_module::ismodule2(%s, %s)
3source/plugin/designm/lev_module.php32_works_module::readlist(Array)
4source/plugin/designm/module/_works_module.php52table_designm::getdatalist(%s, %s, %s)
5source/plugin/designm/table/table_designm.php37discuz_database::fetch_all(%s)
6source/class/discuz/discuz_database.php100discuz_database::query(%s, Array, false, false)
7source/class/discuz/discuz_database.php136db_driver_mysql->query(%s, false, false)
8source/class/db/db_driver_mysql.php151db_driver_mysql->halt(%s, %d, %s)
9source/class/db/db_driver_mysql.php218break()
studio-ampersand.com 已經(jīng)將此出錯信息詳細(xì)記錄, 由此給您帶來的訪問不便我們深感歉意. Need Help?