:(

SQLSTATE[HY000]: General error: 1 near "and": syntax error

错误位置

FILE: C:\phpstudy_pro\WWW\html\ThinkPHP\Library\Think\Db\Driver.class.php  LINE: 156

TRACE

#0 C:\phpstudy_pro\WWW\html\ThinkPHP\Library\Think\Db\Driver.class.php(156): PDO->prepare('SELECT id,name,...')
#1 C:\phpstudy_pro\WWW\html\ThinkPHP\Library\Think\Db\Driver.class.php(935): Think\Db\Driver->query('SELECT id,name,...', false)
#2 C:\phpstudy_pro\WWW\html\ThinkPHP\Library\Think\Model.class.php(579): Think\Db\Driver->select(Array)
#3 C:\phpstudy_pro\WWW\html\Application\Common\Common\function.php(298): Think\Model->select()
#4 C:\phpstudy_pro\WWW\html\Application\Common\Common\function.php(60): get_mykeys(NULL)
#5 C:\phpstudy_pro\WWW\html\Application\Common\Common\sp_func.php(112): keys_link(NULL, '')
#6 C:\phpstudy_pro\WWW\html\Runtime\Cache\Gaozhong\890b3e82c1cedfeded2dc7ca76a137de.php(1): sp_get_details()
#7 C:\phpstudy_pro\WWW\html\ThinkPHP\Library\Think\Storage\Driver\File.class.php(80): include('C:\\phpstudy_pro...')
#8 [internal function]: Think\Storage\Driver\File->load('./Runtime/Cache...', Array, NULL, 'tpl')
#9 C:\phpstudy_pro\WWW\html\ThinkPHP\Library\Think\Storage.class.php(37): call_user_func_array(Array, Array)
#10 C:\phpstudy_pro\WWW\html\ThinkPHP\Library\Think\Template.class.php(77): Think\Storage::__callstatic('load', Array)
#11 C:\phpstudy_pro\WWW\html\ThinkPHP\Library\Behavior\ParseTemplateBehavior.class.php(32): Think\Template->fetch('./Application/G...', Array, '')
#12 C:\phpstudy_pro\WWW\html\ThinkPHP\Library\Think\Hook.class.php(119): Behavior\ParseTemplateBehavior->run(Array)
#13 C:\phpstudy_pro\WWW\html\ThinkPHP\Library\Think\Hook.class.php(89): Think\Hook::exec('Behavior\\ParseT...', 'run', Array)
#14 C:\phpstudy_pro\WWW\html\ThinkPHP\Library\Think\View.class.php(126): Think\Hook::listen('view_parse', Array)
#15 C:\phpstudy_pro\WWW\html\ThinkPHP\Library\Think\View.class.php(72): Think\View->fetch('./Application/G...', '', '')
#16 C:\phpstudy_pro\WWW\html\ThinkPHP\Library\Think\Controller.class.php(56): Think\View->display('', '', '', '', '')
#17 C:\phpstudy_pro\WWW\html\Application\Gaozhong\Controller\TeacherController.class.php(16): Think\Controller->display()
#18 [internal function]: Gaozhong\Controller\TeacherController->details()
#19 C:\phpstudy_pro\WWW\html\ThinkPHP\Library\Think\App.class.php(164): ReflectionMethod->invoke(Object(Gaozhong\Controller\TeacherController))
#20 C:\phpstudy_pro\WWW\html\ThinkPHP\Library\Think\App.class.php(202): Think\App::exec()
#21 C:\phpstudy_pro\WWW\html\ThinkPHP\Library\Think\Think.class.php(120): Think\App::run()
#22 C:\phpstudy_pro\WWW\html\ThinkPHP\ThinkPHP.php(97): Think\Think::start()
#23 C:\phpstudy_pro\WWW\html\index.php(38): require('C:\\phpstudy_pro...')
#24 {main}