:(

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

错误位置

FILE: /www/users/HK1582866/WEB/ThinkPHP/Library/Think/Db/Driver.class.php  LINE: 169

TRACE

#0 /www/users/HK1582866/WEB/ThinkPHP/Library/Think/Db/Driver.class.php(169): PDOStatement->execute()
#1 /www/users/HK1582866/WEB/ThinkPHP/Library/Think/Db/Driver.class.php(928): Think\Db\Driver->query('SELECT COUNT(*)...', false)
#2 /www/users/HK1582866/WEB/ThinkPHP/Library/Think/Model.class.php(963): Think\Db\Driver->select(Array)
#3 /www/users/HK1582866/WEB/ThinkPHP/Library/Think/Model.class.php(227): Think\Model->getField('COUNT(*) AS tp_...')
#4 /www/users/HK1582866/WEB/App/Home/Controller/CustomController.class.php(59): Think\Model->__call('count', Array)
#5 /www/users/HK1582866/WEB/App/Home/Controller/CustomController.class.php(59): Think\Model->count()
#6 [internal function]: Home\Controller\CustomController->index()
#7 /www/users/HK1582866/WEB/ThinkPHP/Library/Think/App.class.php(174): ReflectionMethod->invoke(Object(Home\Controller\CustomController))
#8 /www/users/HK1582866/WEB/ThinkPHP/Library/Think/App.class.php(212): Think\App::exec()
#9 /www/users/HK1582866/WEB/ThinkPHP/Library/Think/Think.class.php(120): Think\App::run()
#10 /www/users/HK1582866/WEB/ThinkPHP/ThinkPHP.php(97): Think\Think::start()
#11 /www/users/HK1582866/WEB/index.php(21): require('/www/users/HK15...')
#12 {main}