:(

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 ') ORDER BY sortnum desc LIMIT 1' at line 1

錯誤位置

FILE: /data/home/bxu2404340354/htdocs/ThinkPHP/Library/Think/Db/Driver.class.php  LINE: 169

TRACE

#0 /data/home/bxu2404340354/htdocs/ThinkPHP/Library/Think/Db/Driver.class.php(169): PDOStatement->execute()
#1 /data/home/bxu2404340354/htdocs/ThinkPHP/Library/Think/Db/Driver.class.php(935): Think\Db\Driver->query('SELECT COUNT(*)...', false)
#2 /data/home/bxu2404340354/htdocs/ThinkPHP/Library/Think/Model.class.php(962): Think\Db\Driver->select(Array)
#3 /data/home/bxu2404340354/htdocs/ThinkPHP/Library/Think/Model.class.php(227): Think\Model->getField('COUNT(*) AS tp_...')
#4 /data/home/bxu2404340354/htdocs/Application/Index/Controller/IndexController.class.php(174): Think\Model->__call('count', Array)
#5 /data/home/bxu2404340354/htdocs/Application/Index/Controller/IndexController.class.php(174): Think\Model->count()
#6 [internal function]: Index\Controller\IndexController->show()
#7 /data/home/bxu2404340354/htdocs/ThinkPHP/Library/Think/App.class.php(164): ReflectionMethod->invoke(Object(Index\Controller\IndexController))
#8 /data/home/bxu2404340354/htdocs/ThinkPHP/Library/Think/App.class.php(202): Think\App::exec()
#9 /data/home/bxu2404340354/htdocs/ThinkPHP/Library/Think/Think.class.php(120): Think\App::run()
#10 /data/home/bxu2404340354/htdocs/ThinkPHP/ThinkPHP.php(97): Think\Think::start()
#11 /data/home/bxu2404340354/htdocs/index.php(24): require('/data/home/bxu2...')
#12 {main}