:(

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: D:\wwwroot\ailyauto123\wwwroot\ThinkPHP\Library\Think\Db\Driver.class.php  LINE: 168

TRACE

#0 D:\wwwroot\ailyauto123\wwwroot\ThinkPHP\Library\Think\Db\Driver.class.php(168): PDOStatement->execute()
#1 D:\wwwroot\ailyauto123\wwwroot\ThinkPHP\Library\Think\Db\Driver.class.php(934): Think\Db\Driver->query('SELECT `pid` FR...', false)
#2 D:\wwwroot\ailyauto123\wwwroot\ThinkPHP\Library\Think\Model.class.php(970): Think\Db\Driver->select(Array)
#3 D:\wwwroot\ailyauto123\wwwroot\Application\Home\Controller\IndexController.class.php(351): Think\Model->getField('pid')
#4 [internal function]: Home\Controller\IndexController->product()
#5 D:\wwwroot\ailyauto123\wwwroot\ThinkPHP\Library\Think\App.class.php(173): ReflectionMethod->invoke(Object(Home\Controller\IndexController))
#6 D:\wwwroot\ailyauto123\wwwroot\ThinkPHP\Library\Think\App.class.php(110): Think\App::invokeAction(Object(Home\Controller\IndexController), 'product')
#7 D:\wwwroot\ailyauto123\wwwroot\ThinkPHP\Library\Think\App.class.php(204): Think\App::exec()
#8 D:\wwwroot\ailyauto123\wwwroot\ThinkPHP\Library\Think\Think.class.php(120): Think\App::run()
#9 D:\wwwroot\ailyauto123\wwwroot\ThinkPHP\ThinkPHP.php(97): Think\Think::start()
#10 D:\wwwroot\ailyauto123\wwwroot\index.php(24): require('D:\\wwwroot\\aily...')
#11 {main}