:(

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 `flag` = 0 AND `status` = 1 AND `del` = 0 ORDER BY sort desc,id desc LIMIT' at line 1 [ SQL语句 ] : SELECT COUNT(*) AS tp_count FROM `cms_classs` WHERE `id` NOT IN () AND `flag` = 0 AND `status` = 1 AND `del` = 0 ORDER BY sort desc,id desc LIMIT 1

错误位置

FILE: /www/web/news_jianpei_com_cn/public_html/Application/_Core/Library/Think/Db/Driver.class.php  LINE: 350

TRACE

#0 /www/web/news_jianpei_com_cn/public_html/Application/_Core/Library/Think/Db/Driver.class.php(350): E('1064:You have a...')
#1 /www/web/news_jianpei_com_cn/public_html/Application/_Core/Library/Think/Db/Driver.class.php(180): Think\Db\Driver->error()
#2 /www/web/news_jianpei_com_cn/public_html/Application/_Core/Library/Think/Db/Driver.class.php(946): Think\Db\Driver->query('SELECT COUNT(*)...', false)
#3 /www/web/news_jianpei_com_cn/public_html/Application/_Core/Library/Think/Model.class.php(970): Think\Db\Driver->select(Array)
#4 /www/web/news_jianpei_com_cn/public_html/Application/_Core/Library/Think/Model.class.php(227): Think\Model->getField('COUNT(*) AS tp_...')
#5 /www/web/news_jianpei_com_cn/public_html/Application/Home/Controller/LiveController.class.php(34): Think\Model->__call('count', Array)
#6 /www/web/news_jianpei_com_cn/public_html/Application/Home/Controller/LiveController.class.php(34): Think\Model->count()
#7 [internal function]: Home\Controller\LiveController->index()
#8 /www/web/news_jianpei_com_cn/public_html/Application/_Core/Library/Think/App.class.php(173): ReflectionMethod->invoke(Object(Home\Controller\LiveController))
#9 /www/web/news_jianpei_com_cn/public_html/Application/_Core/Library/Think/App.class.php(110): Think\App::invokeAction(Object(Home\Controller\LiveController), 'index')
#10 /www/web/news_jianpei_com_cn/public_html/Application/_Core/Library/Think/App.class.php(204): Think\App::exec()
#11 /www/web/news_jianpei_com_cn/public_html/Application/_Core/Library/Think/Think.class.php(120): Think\App::run()
#12 /www/web/news_jianpei_com_cn/public_html/Application/_Core/ThinkPHP.php(97): Think\Think::start()
#13 /www/web/news_jianpei_com_cn/public_html/index.php(69): require('/www/web/news_j...')
#14 {main}