:(

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 '' at line 1 [ SQL语句 ] : select distinct valueid from rob_product_category where valueid is not null and parentid=

错误位置

FILE: /apps/webs/www.robechics.com/ThinkPHP/Library/Think/Db/Driver.class.php  LINE: 394

TRACE

#0 /apps/webs/www.robechics.com/ThinkPHP/Library/Think/Db/Driver.class.php(394): E('1064:You have a...')
#1 /apps/webs/www.robechics.com/ThinkPHP/Library/Think/Db/Driver.class.php(198): Think\Db\Driver->error()
#2 /apps/webs/www.robechics.com/ThinkPHP/Library/Think/Model.class.php(1545): Think\Db\Driver->query('select distinct...')
#3 /apps/webs/www.robechics.com/Application/Common/Model/ProductValueModel.class.php(43): Think\Model->query('select distinct...')
#4 /apps/webs/www.robechics.com/Application/fr/Controller/AttributeData.class.php(134): Common\Model\ProductValueModel->getCategoryValueid(NULL)
#5 /apps/webs/www.robechics.com/Application/fr/Controller/CategoryController.class.php(78): fr\Controller\AttributeData->getUrl(Array)
#6 [internal function]: fr\Controller\CategoryController->index()
#7 /apps/webs/www.robechics.com/ThinkPHP/Library/Think/App.class.php(179): ReflectionMethod->invoke(Object(fr\Controller\CategoryController))
#8 /apps/webs/www.robechics.com/ThinkPHP/Library/Think/App.class.php(114): Think\App::invokeAction(Object(fr\Controller\CategoryController), 'index')
#9 /apps/webs/www.robechics.com/ThinkPHP/Library/Think/App.class.php(224): Think\App::exec()
#10 /apps/webs/www.robechics.com/ThinkPHP/Library/Think/Think.class.php(136): Think\App::run()
#11 /apps/webs/www.robechics.com/ThinkPHP/ThinkPHP.php(100): Think\Think::start()
#12 /apps/webs/www.robechics.com/Web/index.php(30): require('/apps/webs/www....')
#13 {main}