:(

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 ') ORDER BY `sort` desc' at line 1 [ SQL语句 ] : SELECT * FROM `wg_goods_cate` WHERE ( parentid= ) ORDER BY `sort` desc

错误位置

FILE: D:\wwwroot\wange2020\ThinkPHP\Library\Think\Db\Driver.class.php  LINE: 394

TRACE

#0 D:\wwwroot\wange2020\ThinkPHP\Library\Think\Db\Driver.class.php(394): E('1064:You have a...')
#1 D:\wwwroot\wange2020\ThinkPHP\Library\Think\Db\Driver.class.php(198): Think\Db\Driver->error()
#2 D:\wwwroot\wange2020\ThinkPHP\Library\Think\Db\Driver.class.php(1066): Think\Db\Driver->query('SELECT * FROM `...', false, false)
#3 D:\wwwroot\wange2020\ThinkPHP\Library\Think\Model.class.php(628): Think\Db\Driver->select(Array)
#4 D:\wwwroot\wange2020\Application\Home\Controller\GoodsArticleController.class.php(25): Think\Model->select()
#5 [internal function]: Home\Controller\GoodsArticleController->index('22')
#6 D:\wwwroot\wange2020\ThinkPHP\Library\Think\App.class.php(176): ReflectionMethod->invokeArgs(Object(Home\Controller\GoodsArticleController), Array)
#7 D:\wwwroot\wange2020\ThinkPHP\Library\Think\App.class.php(113): Think\App::invokeAction(Object(Home\Controller\GoodsArticleController), 'index')
#8 D:\wwwroot\wange2020\ThinkPHP\Library\Think\App.class.php(213): Think\App::exec()
#9 D:\wwwroot\wange2020\ThinkPHP\Library\Think\Think.class.php(136): Think\App::run()
#10 D:\wwwroot\wange2020\ThinkPHP\ThinkPHP.php(100): Think\Think::start()
#11 D:\wwwroot\wange2020\index.php(33): require('D:\\wwwroot\\wang...')
#12 {main}