:(

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 desc limit 0,1' at line 1 [ SQL语句 ] : select * from wx_article where id

错误位置

FILE: /www/wwwroot/scfeifan/ThinkPHP/Library/Think/Db/Driver.class.php  LINE: 350

TRACE

#0 /www/wwwroot/scfeifan/ThinkPHP/Library/Think/Db/Driver.class.php(350): E('1064:You have a...')
#1 /www/wwwroot/scfeifan/ThinkPHP/Library/Think/Db/Driver.class.php(180): Think\Db\Driver->error()
#2 /www/wwwroot/scfeifan/ThinkPHP/Library/Think/Model.class.php(1382): Think\Db\Driver->query('select * from w...')
#3 /www/wwwroot/scfeifan/App/Home/Controller/ProductController.class.php(116): Think\Model->query('select * from w...')
#4 [internal function]: Home\Controller\ProductController->info()
#5 /www/wwwroot/scfeifan/ThinkPHP/Library/Think/App.class.php(174): ReflectionMethod->invoke(Object(Home\Controller\ProductController))
#6 /www/wwwroot/scfeifan/ThinkPHP/Library/Think/App.class.php(111): Think\App::invokeAction(Object(Home\Controller\ProductController), 'info')
#7 /www/wwwroot/scfeifan/ThinkPHP/Library/Think/App.class.php(205): Think\App::exec()
#8 /www/wwwroot/scfeifan/ThinkPHP/Library/Think/Think.class.php(120): Think\App::run()
#9 /www/wwwroot/scfeifan/ThinkPHP/ThinkPHP.php(97): Think\Think::start()
#10 /www/wwwroot/scfeifan/index.php(24): require('/www/wwwroot/sc...')
#11 {main}