:(

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

错误位置

FILE: E:\Vhost\Phphost\zj-mfr_com\web\ThinkPHP\Library\Think\Db\Driver.class.php  LINE: 156

TRACE

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