:(

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 '-10,10' at line 1 [ SQL语句 ] : select * from news where hand = '44' order by time desc limit -10,10

错误位置

FILE: D:\vhostroot\LocalUser\njyqyy218\www\ThinkPHP\Lib\Driver\Db\DbMysql.class.php  LINE: 320

TRACE

[24-11-23 15:06:11] D:\vhostroot\LocalUser\njyqyy218\www\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 '-10,10' at line 1
[ SQL语句 ] : select * from news where hand = '44' order by time desc limit -10,10 , , ERR)
[24-11-23 15:06:11] D:\vhostroot\LocalUser\njyqyy218\www\ThinkPHP\Lib\Driver\Db\DbMysql.class.php (107) DbMysql->error()
[24-11-23 15:06:11] D:\vhostroot\LocalUser\njyqyy218\www\ThinkPHP\Lib\Core\Model.class.php (1078) DbMysql->query(select * from news where hand = '44' order by time desc limit -10,10 )
[24-11-23 15:06:11] D:\vhostroot\LocalUser\njyqyy218\www\App\Lib\Action\SiteAction.class.php (84) Model->query(select * from news where hand = '44' order by time desc limit -10,10 )
[24-11-23 15:06:11] () SiteAction->news_list(44, 2)
[24-11-23 15:06:11] D:\vhostroot\LocalUser\njyqyy218\www\ThinkPHP\Lib\Core\App.class.php (170) ReflectionMethod->invokeArgs(, Array)
[24-11-23 15:06:11] D:\vhostroot\LocalUser\njyqyy218\www\ThinkPHP\Lib\Core\App.class.php (208) App::exec()
[24-11-23 15:06:11] D:\vhostroot\LocalUser\njyqyy218\www\ThinkPHP\Lib\Core\Think.class.php (39) App::run()
[24-11-23 15:06:11] D:\vhostroot\LocalUser\njyqyy218\www\ThinkPHP\Common\runtime.php (243) Think::start()
[24-11-23 15:06:11] D:\vhostroot\LocalUser\njyqyy218\www\ThinkPHP\ThinkPHP.php (30) require(D:\vhostroot\LocalUser\njyqyy218\www\ThinkPHP\Common\runtime.php)
[24-11-23 15:06:11] D:\vhostroot\LocalUser\njyqyy218\www\index.php (21) require(D:\vhostroot\LocalUser\njyqyy218\www\ThinkPHP\ThinkPHP.php)