数据库操作发生错误

错误代码: 1054

[错误信息]

Unknown column 'smarty' in 'where clause'

[SQL语句]

SELECT infoid,cid,title,content FROM hr_info WHERE cid = smarty AND pass = 1 ORDER BY resort ASC, createtime DESC LIMIT 0, 10

[TRACE]

#0 /data/web/p_china_gold/hr.lib/lib.class/DataOpera.class.php(470) DataOpera->showException(SELECT infoid,cid,title,content FROM hr_info WHERE cid = smarty AND pass = 1 ORDER BY resort ASC, createtime DESC LIMIT 0, 10)
#1 /data/web/p_china_gold/include/model/News.class.php(118) DataOpera->find(Array)
#2 /data/web/p_china_gold/include/controller/productsController.php(392) News->getOneNew(Array)
#3 /data/web/p_china_gold/dispatcher/Dispatcher.class.php(76) productsController->infoAction()
#4 /data/web/p_china_gold/index.php(35) Dispatcher->dispatch()

哆哆视频