⊙﹏⊙‖

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 o ASC LIMIT 1) AND sid=' at line 1

错误位置

FILE: D:\wwwroot\dsd\wwwroot\ThinkPHP\Library\Think\Db\Driver.class.php  LINE: 169

TRACE

#0 D:\wwwroot\dsd\wwwroot\ThinkPHP\Library\Think\Db\Driver.class.php(169): PDOStatement->execute()
#1 D:\wwwroot\dsd\wwwroot\ThinkPHP\Library\Think\Model.class.php(1362): Think\Db\Driver->query('SELECT aid,titl...')
#2 D:\wwwroot\dsd\wwwroot\App\Home\Controller\IndexController.class.php(151): Think\Model->query('SELECT aid,titl...')
#3 [internal function]: Home\Controller\IndexController->details('13')
#4 D:\wwwroot\dsd\wwwroot\ThinkPHP\Library\Think\App.class.php(162): ReflectionMethod->invokeArgs(Object(Home\Controller\IndexController), Array)
#5 D:\wwwroot\dsd\wwwroot\ThinkPHP\Library\Think\App.class.php(202): Think\App::exec()
#6 D:\wwwroot\dsd\wwwroot\ThinkPHP\Library\Think\Think.class.php(120): Think\App::run()
#7 D:\wwwroot\dsd\wwwroot\ThinkPHP\ThinkPHP.php(97): Think\Think::start()
#8 D:\wwwroot\dsd\wwwroot\index.php(26): require('D:\\wwwroot\\dsd\\...')
#9 {main}