数据库操作发生错误

错误代码: 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 infoid<>1750 AND pass=1 ORDER BY resort ASC, createtime DESC LIMIT 4' at line 1

[SQL语句]

SELECT infoid, title,photo FROM gw_info WHERE cid= AND infoid<>1750 AND pass=1 ORDER BY resort ASC, createtime DESC LIMIT 4

[TRACE]

#0 D:\www\free.lib\lib.class\DataOpera.class.php(473) DataOpera->showException(SELECT infoid, title,photo FROM gw_info WHERE cid= AND infoid<>1750 AND pass=1 ORDER BY resort ASC, createtime DESC LIMIT 4)
#1 D:\www\include\model\News.class.php(45) DataOpera->find(Array)
#2 D:\www\include\controller\articleController.php(78) News->getNewsList(Array)
#3 D:\www\dispatcher\Dispatcher.class.php(91) articleController->detailAction()
#4 D:\www\index.php(24) Dispatcher->dispatch()