:(

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

错误位置

FILE: D:\wwwroot\prom2017\ThinkPHP\Library\Think\Db\Driver.class.php  LINE: 169

TRACE

#0 D:\wwwroot\prom2017\ThinkPHP\Library\Think\Db\Driver.class.php(169): PDOStatement->execute()
#1 D:\wwwroot\prom2017\ThinkPHP\Library\Think\Db\Driver.class.php(935): Think\Db\Driver->query('SELECT `id` FRO...', false)
#2 D:\wwwroot\prom2017\ThinkPHP\Library\Think\Model.class.php(579): Think\Db\Driver->select(Array)
#3 D:\wwwroot\prom2017\Apps\Home\Common\function.php(16): Think\Model->select()
#4 D:\wwwroot\prom2017\Apps\Home\Controller\ProductsController.class.php(102): get_class_id(NULL)
#5 [internal function]: Home\Controller\ProductsController->index(1)
#6 D:\wwwroot\prom2017\ThinkPHP\Library\Think\App.class.php(162): ReflectionMethod->invokeArgs(Object(Home\Controller\ProductsController), Array)
#7 D:\wwwroot\prom2017\ThinkPHP\Library\Think\App.class.php(202): Think\App::exec()
#8 D:\wwwroot\prom2017\ThinkPHP\Library\Think\Think.class.php(120): Think\App::run()
#9 D:\wwwroot\prom2017\ThinkPHP\ThinkPHP.php(100): Think\Think::start()
#10 D:\wwwroot\prom2017\index.php(25): require('D:\wwwroot\prom...')
#11 {main}