:(

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY add_time asc LIMIT 1' at line 1 [ SQL语句 ] : SELECT * FROM `y_information` WHERE id>130 and sh=1 and information_class = ORDER BY add_time asc LIMIT 1

错误位置

FILE: /opt/lampp/htdocs/html/ThinkPHP/Lib/Driver/Db/DbMysql.class.php  LINE: 320

TRACE

[24-03-29 03:14:03] /opt/lampp/htdocs/html/ThinkPHP/Lib/Driver/Db/DbMysql.class.php (320) trace(You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY add_time asc LIMIT 1' at line 1
[ SQL语句 ] : SELECT * FROM `y_information` WHERE id>130 and sh=1 and information_class = ORDER BY add_time asc LIMIT 1 , , ERR)
[24-03-29 03:14:03] /opt/lampp/htdocs/html/ThinkPHP/Lib/Driver/Db/DbMysql.class.php (107) DbMysql->error()
[24-03-29 03:14:03] /opt/lampp/htdocs/html/ThinkPHP/Lib/Core/Db.class.php (739) DbMysql->query(SELECT * FROM `y_information` WHERE id>130 and sh=1 and information_class = ORDER BY add_time asc LIMIT 1 )
[24-03-29 03:14:03] /opt/lampp/htdocs/html/ThinkPHP/Lib/Core/Model.class.php (597) Db->select(Array)
[24-03-29 03:14:03] /opt/lampp/htdocs/html/home/Lib/Action/ProductAction.class.php (91) Model->find()
[24-03-29 03:14:03] () ProductAction->showproduct()
[24-03-29 03:14:03] /opt/lampp/htdocs/html/ThinkPHP/Lib/Core/App.class.php (169) ReflectionMethod->invoke()
[24-03-29 03:14:03] /opt/lampp/htdocs/html/ThinkPHP/Lib/Core/App.class.php (205) App::exec()
[24-03-29 03:14:03] /opt/lampp/htdocs/html/ThinkPHP/Lib/Core/Think.class.php (39) App::run()
[24-03-29 03:14:03] /opt/lampp/htdocs/html/ThinkPHP/Common/runtime.php (243) Think::start()
[24-03-29 03:14:03] /opt/lampp/htdocs/html/ThinkPHP/ThinkPHP.php (30) require(/opt/lampp/htdocs/html/ThinkPHP/Common/runtime.php)
[24-03-29 03:14:03] /opt/lampp/htdocs/html/index.php (6) require(/opt/lampp/htdocs/html/ThinkPHP/ThinkPHP.php)