:(

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: /alidata/www/17sysj_com/ThinkPHP/Library/Think/Db/Driver.class.php  LINE: 169

TRACE

#0 /alidata/www/17sysj_com/ThinkPHP/Library/Think/Db/Driver.class.php(169): PDOStatement->execute()
#1 /alidata/www/17sysj_com/ThinkPHP/Library/Think/Db/Driver.class.php(947): Think\Db\Driver->query('SELECT `name`,`...', false)
#2 /alidata/www/17sysj_com/ThinkPHP/Library/Think/Model.class.php(759): Think\Db\Driver->select(Array)
#3 /alidata/www/17sysj_com/Application/Home/Model/PackageModel.class.php(70): Think\Model->find()
#4 /alidata/www/17sysj_com/Application/Home/Controller/GiftController.class.php(175): Home\Model\PackageModel->getGiftsInfo('795')
#5 [internal function]: Home\Controller\GiftController->giftShow()
#6 /alidata/www/17sysj_com/ThinkPHP/Library/Think/App.class.php(164): ReflectionMethod->invoke(Object(Home\Controller\GiftController))
#7 /alidata/www/17sysj_com/ThinkPHP/Library/Think/App.class.php(202): Think\App::exec()
#8 /alidata/www/17sysj_com/ThinkPHP/Library/Think/Think.class.php(120): Think\App::run()
#9 /alidata/www/17sysj_com/ThinkPHP/ThinkPHP.php(97): Think\Think::start()
#10 /alidata/www/17sysj_com/acquiescenceIndex.php(29): require('/alidata/www/17...')
#11 /alidata/www/17sysj_com/index.php(49): require('/alidata/www/17...')
#12 {main}