:(

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 '-20,20' at line 1 [ SQL语句 ] : SELECT * FROM `y_goods` WHERE goods_class="合作媒体" ORDER BY goods_addtime desc LIMIT -20,20

错误位置

FILE: /usr/home/wh-ax9eyhzt9voiwmreb2y/htdocs/ThinkPHP/Lib/Driver/Db/DbMysql.class.php  LINE: 320

TRACE

[24-12-22 15:30:12] /usr/home/wh-ax9eyhzt9voiwmreb2y/htdocs/ThinkPHP/Lib/Driver/Db/DbMysql.class.php (320) trace(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 '-20,20' at line 1
[ SQL语句 ] : SELECT * FROM `y_goods` WHERE goods_class="合作媒体" ORDER BY goods_addtime desc LIMIT -20,20 , , ERR)
[24-12-22 15:30:12] /usr/home/wh-ax9eyhzt9voiwmreb2y/htdocs/ThinkPHP/Lib/Driver/Db/DbMysql.class.php (107) DbMysql->error()
[24-12-22 15:30:12] /usr/home/wh-ax9eyhzt9voiwmreb2y/htdocs/ThinkPHP/Lib/Core/Db.class.php (739) DbMysql->query(SELECT * FROM `y_goods` WHERE goods_class="合作媒体" ORDER BY goods_addtime desc LIMIT -20,20 )
[24-12-22 15:30:12] /usr/home/wh-ax9eyhzt9voiwmreb2y/htdocs/ThinkPHP/Lib/Core/Model.class.php (497) Db->select(Array)
[24-12-22 15:30:12] /usr/home/wh-ax9eyhzt9voiwmreb2y/htdocs/home/Lib/Action/GoodsAction.class.php (193) Model->select()
[24-12-22 15:30:12] () GoodsAction->media()
[24-12-22 15:30:12] /usr/home/wh-ax9eyhzt9voiwmreb2y/htdocs/ThinkPHP/Lib/Core/App.class.php (169) ReflectionMethod->invoke()
[24-12-22 15:30:12] /usr/home/wh-ax9eyhzt9voiwmreb2y/htdocs/ThinkPHP/Lib/Core/App.class.php (205) App::exec()
[24-12-22 15:30:12] /usr/home/wh-ax9eyhzt9voiwmreb2y/htdocs/ThinkPHP/Lib/Core/Think.class.php (39) App::run()
[24-12-22 15:30:12] /usr/home/wh-ax9eyhzt9voiwmreb2y/htdocs/ThinkPHP/Common/runtime.php (243) Think::start()
[24-12-22 15:30:12] /usr/home/wh-ax9eyhzt9voiwmreb2y/htdocs/ThinkPHP/ThinkPHP.php (30) require(/usr/home/wh-ax9eyhzt9voiwmreb2y/htdocs/ThinkPHP/Common/runtime.php)
[24-12-22 15:30:12] /usr/home/wh-ax9eyhzt9voiwmreb2y/htdocs/index.php (6) require(/usr/home/wh-ax9eyhzt9voiwmreb2y/htdocs/ThinkPHP/ThinkPHP.php)