:(

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 'index ) LIMIT 1' at line 1

错误位置

FILE: /data/home/qxu1885220327/htdocs/ThinkPHP/Library/Think/Db/Driver.class.php  LINE: 337

TRACE

#0 /data/home/qxu1885220327/htdocs/ThinkPHP/Library/Think/Db/Driver.class.php(337): PDOStatement->execute()
#1 /data/home/qxu1885220327/htdocs/ThinkPHP/Library/Think/Db/Driver.class.php(1869): Think\Db\Driver->query('SELECT COUNT(*)...', false)
#2 /data/home/qxu1885220327/htdocs/ThinkPHP/Library/Think/Model.class.php(1923): Think\Db\Driver->select(Array)
#3 /data/home/qxu1885220327/htdocs/ThinkPHP/Library/Think/Model.class.php(453): Think\Model->getField('COUNT(*) AS tp_...')
#4 /data/home/qxu1885220327/htdocs/App/Home/Controller/IndexController.class.php(132): Think\Model->__call('count', Array)
#5 /data/home/qxu1885220327/htdocs/App/Home/Controller/IndexController.class.php(132): Think\Model->count()
#6 [internal function]: Home\Controller\IndexController->project(1)
#7 /data/home/qxu1885220327/htdocs/ThinkPHP/Library/Think/App.class.php(323): ReflectionMethod->invokeArgs(Object(Home\Controller\IndexController), Array)
#8 /data/home/qxu1885220327/htdocs/ThinkPHP/Library/Think/App.class.php(403): Think\App::exec()
#9 /data/home/qxu1885220327/htdocs/ThinkPHP/Library/Think/Think.class.php(239): Think\App::run()
#10 /data/home/qxu1885220327/htdocs/ThinkPHP/ThinkPHP.php(193): Think\Think::start()
#11 /data/home/qxu1885220327/htdocs/index.php(58): require('/data/home/qxu1...')
#12 {main}