:(

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 1

错误位置

FILE: D:\wwwroot\www_lanse123_com\wwwroot\ThinkPHP\Library\Think\Db\Driver.class.php  LINE: 333

TRACE

#0 D:\wwwroot\www_lanse123_com\wwwroot\ThinkPHP\Library\Think\Db\Driver.class.php(333): PDOStatement->execute()
#1 D:\wwwroot\www_lanse123_com\wwwroot\ThinkPHP\Library\Think\Db\Driver.class.php(1825): Think\Db\Driver->query('SELECT * FROM `...', false)
#2 D:\wwwroot\www_lanse123_com\wwwroot\ThinkPHP\Library\Think\Model.class.php(1163): Think\Db\Driver->select(Array)
#3 D:\wwwroot\www_lanse123_com\wwwroot\Application\Home\Common\function.php(303): Think\Model->select()
#4 D:\wwwroot\www_lanse123_com\wwwroot\Application\Home\Model\DocumentModel.class.php(60): getAllChildcateIds(NULL)
#5 D:\wwwroot\www_lanse123_com\wwwroot\Application\Home\Controller\ArticleController.class.php(44): Home\Model\DocumentModel->lists(NULL)
#6 [internal function]: Home\Controller\ArticleController->lists(1)
#7 D:\wwwroot\www_lanse123_com\wwwroot\ThinkPHP\Library\Think\App.class.php(321): ReflectionMethod->invokeArgs(Object(Home\Controller\ArticleController), Array)
#8 D:\wwwroot\www_lanse123_com\wwwroot\ThinkPHP\Library\Think\App.class.php(401): Think\App::exec()
#9 D:\wwwroot\www_lanse123_com\wwwroot\ThinkPHP\Library\Think\Think.class.php(239): Think\App::run()
#10 D:\wwwroot\www_lanse123_com\wwwroot\ThinkPHP\ThinkPHP.php(193): Think\Think::start()
#11 D:\wwwroot\www_lanse123_com\wwwroot\index.php(77): require('D:\\wwwroot\\www_...')
#12 {main}