:(

SQLSTATE[42000]: Syntax error or access violation: 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 '%d ) LIMIT 1' at line 1

错误位置

FILE: /data/www/akysite/ThinkPHP/Library/Think/Db/Driver.class.php  LINE: 169

TRACE

#0 /data/www/akysite/ThinkPHP/Library/Think/Db/Driver.class.php(169): PDOStatement->execute()
#1 /data/www/akysite/ThinkPHP/Library/Think/Db/Driver.class.php(930): Think\Db\Driver->query('SELECT COUNT(*)...', false)
#2 /data/www/akysite/ThinkPHP/Library/Think/Model.class.php(993): Think\Db\Driver->select(Array)
#3 /data/www/akysite/ThinkPHP/Library/Think/Model.class.php(228): Think\Model->getField('COUNT(*) AS tp_...')
#4 /data/www/akysite/ThinkPHP/Library/Think/Model/RelationModel.class.php(41): Think\Model->__call('count', Array)
#5 /data/www/akysite/Application/Portal/Controller/IndexController.class.php(79): Think\Model\RelationModel->__call('count', Array)
#6 /data/www/akysite/Application/Portal/Controller/IndexController.class.php(79): Common\Model\PortalGroupModel->count()
#7 [internal function]: Portal\Controller\IndexController->group('79', 1)
#8 /data/www/akysite/ThinkPHP/Library/Think/App.class.php(162): ReflectionMethod->invokeArgs(Object(Portal\Controller\IndexController), Array)
#9 /data/www/akysite/ThinkPHP/Library/Think/App.class.php(202): Think\App::exec()
#10 /data/www/akysite/ThinkPHP/Library/Think/Think.class.php(120): Think\App::run()
#11 /data/www/akysite/ThinkPHP/ThinkPHP.php(97): Think\Think::start()
#12 /data/www/akysite/index.php(24): require('/data/www/akysi...')
#13 {main}