:(

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 `status` = 1 LIMIT 1' at line 1 [ SQL语句 ] : SELECT COUNT(*) AS tp_count FROM ot_document d INNER JOIN ot_document_article t ON d.id=t.id WHERE `category_id` IN () AND `status` = 1 LIMIT 1

错误位置

FILE: E:\phpStudy\WWW\PHP\H170701113944\ThinkPHP\Library\Think\Db\Driver.class.php  LINE: 385

TRACE

#0 E:\phpStudy\WWW\PHP\H170701113944\ThinkPHP\Library\Think\Db\Driver.class.php(385): E('1064:You have a...')
#1 E:\phpStudy\WWW\PHP\H170701113944\ThinkPHP\Library\Think\Db\Driver.class.php(196): Think\Db\Driver->error()
#2 E:\phpStudy\WWW\PHP\H170701113944\ThinkPHP\Library\Think\Db\Driver.class.php(1057): Think\Db\Driver->query('SELECT COUNT(*)...', false, false)
#3 E:\phpStudy\WWW\PHP\H170701113944\ThinkPHP\Library\Think\Model.class.php(1044): Think\Db\Driver->select(Array)
#4 E:\phpStudy\WWW\PHP\H170701113944\ThinkPHP\Library\Think\Model.class.php(242): Think\Model->getField('COUNT(*) AS tp_...')
#5 E:\phpStudy\WWW\PHP\H170701113944\Application\Home\Controller\ArticleController.class.php(207): Think\Model->__call('count', Array)
#6 E:\phpStudy\WWW\PHP\H170701113944\Application\Home\Controller\ArticleController.class.php(207): Think\Model->count()
#7 E:\phpStudy\WWW\PHP\H170701113944\Application\Home\Controller\ArticleController.class.php(48): Home\Controller\ArticleController->page(NULL, '10', 'd.id,title,cove...')
#8 [internal function]: Home\Controller\ArticleController->about()
#9 E:\phpStudy\WWW\PHP\H170701113944\ThinkPHP\Library\Think\App.class.php(178): ReflectionMethod->invoke(Object(Home\Controller\ArticleController))
#10 E:\phpStudy\WWW\PHP\H170701113944\ThinkPHP\Library\Think\App.class.php(113): Think\App::invokeAction(Object(Home\Controller\ArticleController), 'about')
#11 E:\phpStudy\WWW\PHP\H170701113944\ThinkPHP\Library\Think\App.class.php(213): Think\App::exec()
#12 E:\phpStudy\WWW\PHP\H170701113944\ThinkPHP\Library\Think\Think.class.php(135): Think\App::run()
#13 E:\phpStudy\WWW\PHP\H170701113944\ThinkPHP\ThinkPHP.php(100): Think\Think::start()
#14 E:\phpStudy\WWW\PHP\H170701113944\index.php(39): require('E:\\phpStudy\\WWW...')
#15 {main}