系统发生错误

:(

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: /usr/home/qxu2058720311/htdocs/ThinkPHP/Library/Think/Db/Driver.class.php  LINE: 385

TRACE

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