:(

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

[24-10-11 11:24:10] /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)
[24-10-11 11:24:10] /opt/lampp/htdocs/html/ThinkPHP/Lib/Driver/Db/DbMysql.class.php (107) DbMysql->error()
[24-10-11 11:24:10] /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 )
[24-10-11 11:24:10] /opt/lampp/htdocs/html/ThinkPHP/Lib/Core/Model.class.php (597) Db->select(Array)
[24-10-11 11:24:10] /opt/lampp/htdocs/html/home/Lib/Action/ProductAction.class.php (91) Model->find()
[24-10-11 11:24:10] () ProductAction->showproduct()
[24-10-11 11:24:10] /opt/lampp/htdocs/html/ThinkPHP/Lib/Core/App.class.php (169) ReflectionMethod->invoke()
[24-10-11 11:24:10] /opt/lampp/htdocs/html/ThinkPHP/Lib/Core/App.class.php (205) App::exec()
[24-10-11 11:24:10] /opt/lampp/htdocs/html/ThinkPHP/Lib/Core/Think.class.php (39) App::run()
[24-10-11 11:24:10] /opt/lampp/htdocs/html/ThinkPHP/Common/runtime.php (243) Think::start()
[24-10-11 11:24:10] /opt/lampp/htdocs/html/ThinkPHP/ThinkPHP.php (30) require(/opt/lampp/htdocs/html/ThinkPHP/Common/runtime.php)
[24-10-11 11:24:10] /opt/lampp/htdocs/html/index.php (6) require(/opt/lampp/htdocs/html/ThinkPHP/ThinkPHP.php)