:(

SQLSTATE[42000]: Syntax error or access violation: 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 2

错误位置

FILE: D:\www\tg\ThinkPHP\Library\Think\Db\Driver.class.php  LINE: 174

TRACE

#0 D:\www\tg\ThinkPHP\Library\Think\Db\Driver.class.php(174): PDOStatement->execute()
#1 D:\www\tg\ThinkPHP\Library\Think\Model.class.php(1360): Think\Db\Driver->query(' select oc.* fr...')
#2 D:\www\tg\Modules\Home\Model\SellerModel.class.php(37): Think\Model->query(' select oc.* fr...')
#3 D:\www\tg\Modules\Home\Controller\GoodsController.class.php(421): Home\Model\SellerModel->get_pingjia(NULL)
#4 D:\www\tg\Modules\Home\Controller\GoodsController.class.php(322): Home\Controller\GoodsController->get_seller_info(NULL)
#5 [internal function]: Home\Controller\GoodsController->gshow()
#6 D:\www\tg\ThinkPHP\Library\Think\App.class.php(164): ReflectionMethod->invoke(Object(Home\Controller\GoodsController))
#7 D:\www\tg\ThinkPHP\Library\Think\App.class.php(202): Think\App::exec()
#8 D:\www\tg\ThinkPHP\Library\Think\Think.class.php(120): Think\App::run()
#9 D:\www\tg\ThinkPHP\ThinkPHP.php(97): Think\Think::start()
#10 D:\www\tg\index.php(35): require('D:\\www\\tg\\Think...')
#11 {main}