:(

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 a.sort asc LIMIT 0,20' at line 1

错误位置

FILE: D:\phpStudy\WWW\wsbl10401\wsbl\ThinkPHP\Library\Think\Db\Driver.class.php  LINE: 169

TRACE

#0 D:\phpStudy\WWW\wsbl10401\wsbl\ThinkPHP\Library\Think\Db\Driver.class.php(169): PDOStatement->execute()
#1 D:\phpStudy\WWW\wsbl10401\wsbl\ThinkPHP\Library\Think\Db\Driver.class.php(935): Think\Db\Driver->query('SELECT a.*,a.sh...', false)
#2 D:\phpStudy\WWW\wsbl10401\wsbl\ThinkPHP\Library\Think\Model.class.php(579): Think\Db\Driver->select(Array)
#3 D:\phpStudy\WWW\wsbl10401\wsbl\Application\Admin\Model\GoodsModel.class.php(43): Think\Model->select()
#4 D:\phpStudy\WWW\wsbl10401\wsbl\Application\Home\Controller\GoodsController.class.php(128): Admin\Model\GoodsModel->getAllGoods(Array, 1, 'a.sort asc')
#5 [internal function]: Home\Controller\GoodsController->index()
#6 D:\phpStudy\WWW\wsbl10401\wsbl\ThinkPHP\Library\Think\App.class.php(164): ReflectionMethod->invoke(Object(Home\Controller\GoodsController))
#7 D:\phpStudy\WWW\wsbl10401\wsbl\ThinkPHP\Library\Think\App.class.php(202): Think\App::exec()
#8 D:\phpStudy\WWW\wsbl10401\wsbl\ThinkPHP\Library\Think\Think.class.php(120): Think\App::run()
#9 D:\phpStudy\WWW\wsbl10401\wsbl\ThinkPHP\ThinkPHP.php(97): Think\Think::start()
#10 D:\phpStudy\WWW\wsbl10401\wsbl\index.php(61): require('D:\phpStudy\WWW...')
#11 {main}