:(

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 ') ORDER BY id asc LIMIT 1' at line 1

错误位置

FILE: E:\phpstudy2021\WWW\web\cimim\ThinkPHP\Library\Think\Db\Driver.class.php  LINE: 169

TRACE

#0 E:\phpstudy2021\WWW\web\cimim\ThinkPHP\Library\Think\Db\Driver.class.php(169): PDOStatement->execute()
#1 E:\phpstudy2021\WWW\web\cimim\ThinkPHP\Library\Think\Db\Driver.class.php(930): Think\Db\Driver->query('SELECT * FROM `...', false)
#2 E:\phpstudy2021\WWW\web\cimim\ThinkPHP\Library\Think\Model.class.php(760): Think\Db\Driver->select(Array)
#3 E:\phpstudy2021\WWW\web\cimim\Application\Home\Controller\NewsController.class.php(331): Think\Model->find()
#4 [internal function]: Home\Controller\NewsController->detail()
#5 E:\phpstudy2021\WWW\web\cimim\ThinkPHP\Library\Think\App.class.php(164): ReflectionMethod->invoke(Object(Home\Controller\NewsController))
#6 E:\phpstudy2021\WWW\web\cimim\ThinkPHP\Library\Think\App.class.php(202): Think\App::exec()
#7 E:\phpstudy2021\WWW\web\cimim\ThinkPHP\Library\Think\Think.class.php(121): Think\App::run()
#8 E:\phpstudy2021\WWW\web\cimim\ThinkPHP\ThinkPHP.php(97): Think\Think::start()
#9 E:\phpstudy2021\WWW\web\cimim\index.php(24): require('E:\\phpstudy2021...')
#10 {main}