:(

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 ') OR `pid` = null ORDER BY pid' at line 1

错误位置

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

TRACE

#0 D:\www\new_tg_zzp\ThinkPHP\Library\Think\Db\Driver.class.php(174): PDOStatement->execute()
#1 D:\www\new_tg_zzp\ThinkPHP\Library\Think\Db\Driver.class.php(934): Think\Db\Driver->query('SELECT * FROM `...', false)
#2 D:\www\new_tg_zzp\ThinkPHP\Library\Think\Model.class.php(582): Think\Db\Driver->select(Array)
#3 D:\www\new_tg_zzp\Modules\Home\Controller\IndexController.class.php(174): Think\Model->select()
#4 [internal function]: Home\Controller\IndexController->category()
#5 D:\www\new_tg_zzp\ThinkPHP\Library\Think\App.class.php(164): ReflectionMethod->invoke(Object(Home\Controller\IndexController))
#6 D:\www\new_tg_zzp\ThinkPHP\Library\Think\App.class.php(202): Think\App::exec()
#7 D:\www\new_tg_zzp\ThinkPHP\Library\Think\Think.class.php(120): Think\App::run()
#8 D:\www\new_tg_zzp\ThinkPHP\ThinkPHP.php(145): Think\Think::start()
#9 D:\www\new_tg_zzp\index.php(35): require('D:\\www\\new_tg_z...')
#10 {main}