:(

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>83 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

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