:(

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: D:\wwwroot\njsxhb\wwwroot\ThinkPHP\Library\Think\Db\Driver.class.php  LINE: 385

TRACE

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

XML 地图