:(

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 'AND status=1 ) LIMIT 1' at line 1 [ SQL语句 ] : SELECT `parent_id` FROM `jk_shop_category` WHERE ( id= AND status=1 ) LIMIT 1

错误位置

FILE: /alidata/www/ygcomet/webroot/Framework/Library/Think/Db/Driver.class.php  LINE: 350

TRACE

#0 /alidata/www/ygcomet/webroot/Framework/Library/Think/Db/Driver.class.php(350): E('1064:You have a...')
#1 /alidata/www/ygcomet/webroot/Framework/Library/Think/Db/Driver.class.php(180): Think\Db\Driver->error()
#2 /alidata/www/ygcomet/webroot/Framework/Library/Think/Db/Driver.class.php(946): Think\Db\Driver->query('SELECT `parent_...', false)
#3 /alidata/www/ygcomet/webroot/Framework/Library/Think/Model.class.php(970): Think\Db\Driver->select(Array)
#4 /alidata/www/ygcomet/webroot/Jingkai/Common/Common/function.php(710): Think\Model->getField('parent_id')
#5 /alidata/www/ygcomet/webroot/Jingkai/Frontend/Controller/ShopGoodsController.class.php(114): getCateInfo(NULL)
#6 [internal function]: Frontend\Controller\ShopGoodsController->detail('712')
#7 /alidata/www/ygcomet/webroot/Framework/Library/Think/App.class.php(171): ReflectionMethod->invokeArgs(Object(Frontend\Controller\ShopGoodsController), Array)
#8 /alidata/www/ygcomet/webroot/Framework/Library/Think/App.class.php(110): Think\App::invokeAction(Object(Frontend\Controller\ShopGoodsController), 'detail')
#9 /alidata/www/ygcomet/webroot/Framework/Library/Think/App.class.php(204): Think\App::exec()
#10 /alidata/www/ygcomet/webroot/Framework/Library/Think/Think.class.php(120): Think\App::run()
#11 /alidata/www/ygcomet/webroot/Framework/Framework.php(97): Think\Think::start()
#12 /alidata/www/ygcomet/webroot/index.php(25): require('/alidata/www/yg...')
#13 {main}