:(

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 'index AND cat_id= ) ORDER BY article_id desc LIMIT 1' at line 1

错误位置

FILE: D:\wwwroot\newzol\wwwroot\ThinkPHP\Library\Think\Db\Driver.class.php  LINE: 157

TRACE

#0 D:\wwwroot\newzol\wwwroot\ThinkPHP\Library\Think\Db\Driver.class.php(157): PDO->prepare('SELECT `article...')
#1 D:\wwwroot\newzol\wwwroot\ThinkPHP\Library\Think\Db\Driver.class.php(936): Think\Db\Driver->query('SELECT `article...', false)
#2 D:\wwwroot\newzol\wwwroot\ThinkPHP\Library\Think\Model.class.php(759): Think\Db\Driver->select(Array)
#3 D:\wwwroot\newzol\wwwroot\Application\Home\Controller\ArticleController.class.php(50): Think\Model->find()
#4 [internal function]: Home\Controller\ArticleController->index()
#5 D:\wwwroot\newzol\wwwroot\ThinkPHP\Library\Think\App.class.php(164): ReflectionMethod->invoke(Object(Home\Controller\ArticleController))
#6 D:\wwwroot\newzol\wwwroot\ThinkPHP\Library\Think\App.class.php(202): Think\App::exec()
#7 D:\wwwroot\newzol\wwwroot\ThinkPHP\Library\Think\Think.class.php(122): Think\App::run()
#8 D:\wwwroot\newzol\wwwroot\ThinkPHP\ThinkPHP.php(97): Think\Think::start()
#9 D:\wwwroot\newzol\wwwroot\index.php(27): require('D:\\wwwroot\\newz...')
#10 {main}