:(

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

错误位置

FILE: D:\wwwroot\uyustools.com\web\ThinkPHP\Library\Think\Db\Driver.class.php  LINE: 156

TRACE

#0 D:\wwwroot\uyustools.com\web\ThinkPHP\Library\Think\Db\Driver.class.php(156): PDO->prepare('SELECT id,name,...')
#1 D:\wwwroot\uyustools.com\web\ThinkPHP\Library\Think\Db\Driver.class.php(935): Think\Db\Driver->query('SELECT id,name,...', false)
#2 D:\wwwroot\uyustools.com\web\ThinkPHP\Library\Think\Model.class.php(579): Think\Db\Driver->select(Array)
#3 D:\wwwroot\uyustools.com\web\Application\Common\Common\function.php(261): Think\Model->select()
#4 D:\wwwroot\uyustools.com\web\Application\Common\Common\function.php(32): get_mykeys(NULL)
#5 D:\wwwroot\uyustools.com\web\Application\Common\Common\sp_func.php(82): keys_link(NULL, '')
#6 D:\wwwroot\uyustools.com\web\Runtime\Cache\En\9a3142a47c49b0dcc516690cfffe4b0f.php(1): sp_get_column_cate()
#7 D:\wwwroot\uyustools.com\web\ThinkPHP\Library\Think\Storage\Driver\File.class.php(80): include('D:\\wwwroot\\uyus...')
#8 [internal function]: Think\Storage\Driver\File->load('./Runtime/Cache...', Array, NULL, 'tpl')
#9 D:\wwwroot\uyustools.com\web\ThinkPHP\Library\Think\Storage.class.php(37): call_user_func_array(Array, Array)
#10 D:\wwwroot\uyustools.com\web\ThinkPHP\Library\Think\Template.class.php(77): Think\Storage::__callstatic('load', Array)
#11 D:\wwwroot\uyustools.com\web\ThinkPHP\Library\Think\Template.class.php(77): Think\Storage::load('./Runtime/Cache...', Array, NULL, 'tpl')
#12 D:\wwwroot\uyustools.com\web\ThinkPHP\Library\Behavior\ParseTemplateBehavior.class.php(32): Think\Template->fetch('./Application/E...', Array, '')
#13 D:\wwwroot\uyustools.com\web\ThinkPHP\Library\Think\Hook.class.php(119): Behavior\ParseTemplateBehavior->run(Array)
#14 D:\wwwroot\uyustools.com\web\ThinkPHP\Library\Think\Hook.class.php(89): Think\Hook::exec('Behavior\\ParseT...', 'view_parse', Array)
#15 D:\wwwroot\uyustools.com\web\ThinkPHP\Library\Think\View.class.php(126): Think\Hook::listen('view_parse', Array)
#16 D:\wwwroot\uyustools.com\web\ThinkPHP\Library\Think\View.class.php(72): Think\View->fetch('', '', '')
#17 D:\wwwroot\uyustools.com\web\ThinkPHP\Library\Think\Controller.class.php(56): Think\View->display('', '', '', '', '')
#18 D:\wwwroot\uyustools.com\web\Application\En\Controller\ProductsController.class.php(12): Think\Controller->display()
#19 [internal function]: En\Controller\ProductsController->cate()
#20 D:\wwwroot\uyustools.com\web\ThinkPHP\Library\Think\App.class.php(164): ReflectionMethod->invoke(Object(En\Controller\ProductsController))
#21 D:\wwwroot\uyustools.com\web\ThinkPHP\Library\Think\App.class.php(202): Think\App::exec()
#22 D:\wwwroot\uyustools.com\web\ThinkPHP\Library\Think\Think.class.php(120): Think\App::run()
#23 D:\wwwroot\uyustools.com\web\ThinkPHP\ThinkPHP.php(97): Think\Think::start()
#24 D:\wwwroot\uyustools.com\web\index.php(38): require('D:\\wwwroot\\uyus...')
#25 {main}