:(

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 'ORDER BY id asc' at line 1 [ SQL语句 ] : SELECT * FROM `y_casetype` WHERE pid = ORDER BY id asc

错误位置

FILE: D:\virtualhost\dajin\ThinkPHP\Lib\Driver\Db\DbMysql.class.php  LINE: 320

TRACE

[19-10-18 22:00:10] D:\virtualhost\dajin\ThinkPHP\Lib\Driver\Db\DbMysql.class.php (320) trace(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 'ORDER BY id asc' at line 1
[ SQL语句 ] : SELECT * FROM `y_casetype` WHERE pid = ORDER BY id asc , , ERR)
[19-10-18 22:00:10] D:\virtualhost\dajin\ThinkPHP\Lib\Driver\Db\DbMysql.class.php (107) DbMysql->error()
[19-10-18 22:00:10] D:\virtualhost\dajin\ThinkPHP\Lib\Core\Db.class.php (739) DbMysql->query(SELECT * FROM `y_casetype` WHERE pid = ORDER BY id asc )
[19-10-18 22:00:10] D:\virtualhost\dajin\ThinkPHP\Lib\Core\Model.class.php (497) Db->select(Array)
[19-10-18 22:00:10] D:\virtualhost\dajin\home\Lib\Action\CaseAction.class.php (18) Model->select()
[19-10-18 22:00:10] () CaseAction->index()
[19-10-18 22:00:10] D:\virtualhost\dajin\ThinkPHP\Lib\Core\App.class.php (169) ReflectionMethod->invoke()
[19-10-18 22:00:10] D:\virtualhost\dajin\ThinkPHP\Lib\Core\App.class.php (205) App::exec()
[19-10-18 22:00:10] D:\virtualhost\dajin\ThinkPHP\Lib\Core\Think.class.php (39) App::run()
[19-10-18 22:00:10] D:\virtualhost\dajin\ThinkPHP\Common\runtime.php (243) Think::start()
[19-10-18 22:00:10] D:\virtualhost\dajin\ThinkPHP\ThinkPHP.php (30) require(D:\virtualhost\dajin\ThinkPHP\Common\runtime.php)
[19-10-18 22:00:10] D:\virtualhost\dajin\index.php (12) require(D:\virtualhost\dajin\ThinkPHP\ThinkPHP.php)