:(

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 'AND tuij = 1 HAVING sh = 1 ORDER BY add_time desc LIMIT 5' at line 1 [ SQL语句 ] : SELECT * FROM `y_article` WHERE belong_lowweb = AND tuij = 1 HAVING sh = 1 ORDER BY add_time desc LIMIT 5

错误位置

FILE: /data/home/hyu4213800001/htdocs/ThinkPHP/Lib/Driver/Db/DbMysql.class.php  LINE: 320

TRACE

[20-09-28 23:41:09] /data/home/hyu4213800001/htdocs/ThinkPHP/Lib/Driver/Db/DbMysql.class.php (320) trace()
[20-09-28 23:41:09] /data/home/hyu4213800001/htdocs/ThinkPHP/Lib/Driver/Db/DbMysql.class.php (107) DbMysql->error(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 'AND tuij = 1 HAVING sh = 1 ORDER BY add_time desc LIMIT 5' at line 1
[ SQL语句 ] : SELECT * FROM `y_article` WHERE belong_lowweb = AND tuij = 1 HAVING sh = 1 ORDER BY add_time desc LIMIT 5 , , ERR)
[20-09-28 23:41:09] /data/home/hyu4213800001/htdocs/ThinkPHP/Lib/Core/Db.class.php (739) DbMysql->query()
[20-09-28 23:41:09] /data/home/hyu4213800001/htdocs/ThinkPHP/Lib/Core/Model.class.php (497) Db->select(SELECT * FROM `y_article` WHERE belong_lowweb = AND tuij = 1 HAVING sh = 1 ORDER BY add_time desc LIMIT 5 )
[20-09-28 23:41:09] /data/home/hyu4213800001/htdocs/home/Lib/Action/IndexAction.class.php (480) Model->select(Array)
[20-09-28 23:41:09] () IndexAction->sitecontent()
[20-09-28 23:41:09] /data/home/hyu4213800001/htdocs/ThinkPHP/Lib/Core/App.class.php (169) ReflectionMethod->invoke()
[20-09-28 23:41:09] /data/home/hyu4213800001/htdocs/ThinkPHP/Lib/Core/App.class.php (205) App::exec()
[20-09-28 23:41:09] /data/home/hyu4213800001/htdocs/ThinkPHP/Lib/Core/Think.class.php (39) App::run()
[20-09-28 23:41:09] /data/home/hyu4213800001/htdocs/ThinkPHP/Common/runtime.php (243) Think::start()
[20-09-28 23:41:09] /data/home/hyu4213800001/htdocs/ThinkPHP/ThinkPHP.php (30) require(/data/home/hyu4213800001/htdocs/ThinkPHP/Common/runtime.php)
[20-09-28 23:41:09] /data/home/hyu4213800001/htdocs/index.php (9) require(/data/home/hyu4213800001/htdocs/ThinkPHP/ThinkPHP.php)