:(

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 state=1 ) ORDER BY `state2` desc,`order` asc,`id` desc' at line 1 [ SQL语句 ] : SELECT `id`,`pic`,`title` FROM `zdcms_news` WHERE ( cid= and state=1 ) ORDER BY `state2` desc,`order` asc,`id` desc

错误位置

FILE: /usr/home/qyu1950020001/htdocs/ThinkPHP/Library/Think/Db/Driver.class.php  LINE: 394

TRACE

#0 /usr/home/qyu1950020001/htdocs/ThinkPHP/Library/Think/Db/Driver.class.php(394): E('1064:You have a...')
#1 /usr/home/qyu1950020001/htdocs/ThinkPHP/Library/Think/Db/Driver.class.php(198): Think\Db\Driver->error()
#2 /usr/home/qyu1950020001/htdocs/ThinkPHP/Library/Think/Db/Driver.class.php(1067): Think\Db\Driver->query('SELECT `id`,`pi...', false, false)
#3 /usr/home/qyu1950020001/htdocs/ThinkPHP/Library/Think/Model.class.php(628): Think\Db\Driver->select(Array)
#4 /usr/home/qyu1950020001/htdocs/ThinkPHP/Library/Think/Model.class.php(2131): Think\Model->select(Array)
#5 /usr/home/qyu1950020001/htdocs/Application/Home/Controller/NewsController.class.php(96): Think\Model->findAll()
#6 [internal function]: Home\Controller\NewsController->show()
#7 /usr/home/qyu1950020001/htdocs/ThinkPHP/Library/Think/App.class.php(178): ReflectionMethod->invoke(Object(Home\Controller\NewsController))
#8 /usr/home/qyu1950020001/htdocs/ThinkPHP/Library/Think/App.class.php(113): Think\App::invokeAction(Object(Home\Controller\NewsController), 'show')
#9 /usr/home/qyu1950020001/htdocs/ThinkPHP/Library/Think/App.class.php(213): Think\App::exec()
#10 /usr/home/qyu1950020001/htdocs/ThinkPHP/Library/Think/Think.class.php(136): Think\App::run()
#11 /usr/home/qyu1950020001/htdocs/ThinkPHP/ThinkPHP.php(100): Think\Think::start()
#12 /usr/home/qyu1950020001/htdocs/index.php(28): require('/usr/home/qyu19...')
#13 {main}