:(

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 ') LIMIT 1' at line 1 [ SQL语句 ] : SELECT COUNT(*) AS tp_count FROM wetom_article Article JOIN wetom_article_class ArticleClass ON Article.ac_id=ArticleClass.ac_id WHERE Article.ac_id IN () LIMIT 1

错误位置

FILE: D:\wwwroot\cncolshine\wwwroot\Libs\ThinkPHP\Library\Think\Db\Driver.class.php  LINE: 350

TRACE

#0 D:\wwwroot\cncolshine\wwwroot\Libs\ThinkPHP\Library\Think\Db\Driver.class.php(350): E('1064:You have a...')
#1 D:\wwwroot\cncolshine\wwwroot\Libs\ThinkPHP\Library\Think\Db\Driver.class.php(180): Think\Db\Driver->error()
#2 D:\wwwroot\cncolshine\wwwroot\Libs\ThinkPHP\Library\Think\Db\Driver.class.php(946): Think\Db\Driver->query('SELECT COUNT(*)...', false)
#3 D:\wwwroot\cncolshine\wwwroot\Libs\ThinkPHP\Library\Think\Model.class.php(970): Think\Db\Driver->select(Array)
#4 D:\wwwroot\cncolshine\wwwroot\Libs\ThinkPHP\Library\Think\Model.class.php(227): Think\Model->getField('COUNT(*) AS tp_...')
#5 D:\wwwroot\cncolshine\wwwroot\Apps\Common\Common\function.php(151): Think\Model->__call('count', Array)
#6 D:\wwwroot\cncolshine\wwwroot\Apps\Common\Common\function.php(151): Common\Model\ArticleViewModel->count()
#7 D:\wwwroot\cncolshine\wwwroot\Apps\Home\Controller\ArticleController.class.php(27): getpage(Object(Common\Model\ArticleViewModel), Array, 24, 'en')
#8 [internal function]: Home\Controller\ArticleController->index('9')
#9 D:\wwwroot\cncolshine\wwwroot\Libs\ThinkPHP\Library\Think\App.class.php(171): ReflectionMethod->invokeArgs(Object(Home\Controller\ArticleController), Array)
#10 D:\wwwroot\cncolshine\wwwroot\Libs\ThinkPHP\Library\Think\App.class.php(110): Think\App::invokeAction(Object(Home\Controller\ArticleController), 'index')
#11 D:\wwwroot\cncolshine\wwwroot\Libs\ThinkPHP\Library\Think\App.class.php(204): Think\App::exec()
#12 D:\wwwroot\cncolshine\wwwroot\Libs\ThinkPHP\Library\Think\Think.class.php(120): Think\App::run()
#13 D:\wwwroot\cncolshine\wwwroot\Libs\ThinkPHP\ThinkPHP.php(97): Think\Think::start()
#14 D:\wwwroot\cncolshine\wwwroot\index.php(39): require('D:\\wwwroot\\cnco...')
#15 {main}