:(

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>205 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-11-24 12:16:11] /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>205 and sh=1 and information_class = ORDER BY add_time asc LIMIT 1 , , ERR)
[24-11-24 12:16:11] /opt/lampp/htdocs/html/ThinkPHP/Lib/Driver/Db/DbMysql.class.php (107) DbMysql->error()
[24-11-24 12:16:11] /opt/lampp/htdocs/html/ThinkPHP/Lib/Core/Db.class.php (739) DbMysql->query(SELECT * FROM `y_information` WHERE id>205 and sh=1 and information_class = ORDER BY add_time asc LIMIT 1 )
[24-11-24 12:16:11] /opt/lampp/htdocs/html/ThinkPHP/Lib/Core/Model.class.php (597) Db->select(Array)
[24-11-24 12:16:11] /opt/lampp/htdocs/html/home/Lib/Action/ProductAction.class.php (91) Model->find()
[24-11-24 12:16:11] () ProductAction->showproduct()
[24-11-24 12:16:11] /opt/lampp/htdocs/html/ThinkPHP/Lib/Core/App.class.php (169) ReflectionMethod->invoke()
[24-11-24 12:16:11] /opt/lampp/htdocs/html/ThinkPHP/Lib/Core/App.class.php (205) App::exec()
[24-11-24 12:16:11] /opt/lampp/htdocs/html/ThinkPHP/Lib/Core/Think.class.php (39) App::run()
[24-11-24 12:16:11] /opt/lampp/htdocs/html/ThinkPHP/Common/runtime.php (243) Think::start()
[24-11-24 12:16:11] /opt/lampp/htdocs/html/ThinkPHP/ThinkPHP.php (30) require(/opt/lampp/htdocs/html/ThinkPHP/Common/runtime.php)
[24-11-24 12:16:11] /opt/lampp/htdocs/html/index.php (6) require(/opt/lampp/htdocs/html/ThinkPHP/ThinkPHP.php)