:(

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 'LIMIT 1' at line 1 [ SQL语句 ] : SELECT `appellation` FROM `dw_productcate` WHERE id= LIMIT 1

错误位置

FILE: D:\wwwroot\oumer\wwwroot\ThinkPHP\Lib\Driver\Db\DbMysql.class.php  LINE: 320

TRACE

[18-10-19 02:40:10] D:\wwwroot\oumer\wwwroot\ThinkPHP\Lib\Driver\Db\DbMysql.class.php (320) trace()
[18-10-19 02:40:10] D:\wwwroot\oumer\wwwroot\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 'LIMIT 1' at line 1
[ SQL语句 ] : SELECT `appellation` FROM `dw_productcate` WHERE id= LIMIT 1 , , ERR)
[18-10-19 02:40:10] D:\wwwroot\oumer\wwwroot\ThinkPHP\Lib\Core\Db.class.php (739) DbMysql->query()
[18-10-19 02:40:10] D:\wwwroot\oumer\wwwroot\ThinkPHP\Lib\Core\Model.class.php (713) Db->select(SELECT `appellation` FROM `dw_productcate` WHERE id= LIMIT 1 )
[18-10-19 02:40:10] D:\wwwroot\oumer\wwwroot\Action\Home\ProductAction.class.php (123) Model->getField(Array)
[18-10-19 02:40:10] () ProductAction->detail(appellation)
[18-10-19 02:40:10] D:\wwwroot\oumer\wwwroot\ThinkPHP\Lib\Core\App.class.php (170) ReflectionMethod->invokeArgs(1393)
[18-10-19 02:40:10] D:\wwwroot\oumer\wwwroot\ThinkPHP\Lib\Core\App.class.php (208) App::exec(, Array)
[18-10-19 02:40:10] D:\wwwroot\oumer\wwwroot\ThinkPHP\Lib\Core\Think.class.php (39) App::run()
[18-10-19 02:40:10] D:\wwwroot\oumer\wwwroot\ThinkPHP\Common\runtime.php (243) Think::start()
[18-10-19 02:40:10] D:\wwwroot\oumer\wwwroot\ThinkPHP\ThinkPHP.php (30) require(D:\wwwroot\oumer\wwwroot\ThinkPHP\Common\runtime.php)
[18-10-19 02:40:10] D:\wwwroot\oumer\wwwroot\index.php (11) require(D:\wwwroot\oumer\wwwroot\ThinkPHP\ThinkPHP.php)