:(

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 )' at line 1 [ SQL语句 ] : SELECT `id`,`category_name` FROM `jk_shop_category` WHERE ( parent_id= AND status=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 `id`,`ca...', false)
#3 /alidata/www/ygcomet/webroot/Framework/Library/Think/Model.class.php(579): Think\Db\Driver->select(Array)
#4 /alidata/www/ygcomet/webroot/Jingkai/Common/Common/function.php(713): Think\Model->select()
#5 /alidata/www/ygcomet/webroot/Jingkai/Frontend/Controller/ShopGoodsController.class.php(70): getCateInfo('49')
#6 [internal function]: Frontend\Controller\ShopGoodsController->index('49', 0, 1, 6, '`sort` DESC', true)
#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), 'index')
#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}