:(

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 COUNT(*) AS tp_count FROM `eetoday_article` WHERE catid= LIMIT 1

错误位置

FILE: C:\phpStudy\WWW\logistic\ThinkPHP\Lib\Driver\Db\DbMysql.class.php  LINE: 320

TRACE

[19-10-17 09:01:10] C:\phpStudy\WWW\logistic\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 'LIMIT 1' at line 1
[ SQL语句 ] : SELECT COUNT(*) AS tp_count FROM `eetoday_article` WHERE catid= LIMIT 1 , , ERR)
[19-10-17 09:01:10] C:\phpStudy\WWW\logistic\ThinkPHP\Lib\Driver\Db\DbMysql.class.php (107) DbMysql->error()
[19-10-17 09:01:10] C:\phpStudy\WWW\logistic\ThinkPHP\Lib\Core\Db.class.php (739) DbMysql->query(SELECT COUNT(*) AS tp_count FROM `eetoday_article` WHERE catid= LIMIT 1 )
[19-10-17 09:01:10] C:\phpStudy\WWW\logistic\ThinkPHP\Lib\Core\Model.class.php (713) Db->select(Array)
[19-10-17 09:01:10] C:\phpStudy\WWW\logistic\ThinkPHP\Lib\Core\Model.class.php (239) Model->getField(COUNT(*) AS tp_count)
[19-10-17 09:01:10] C:\phpStudy\WWW\logistic\eetoday\Lib\Action\CategoryAction.class.php (23) Model->__call(count, Array)
[19-10-17 09:01:10] C:\phpStudy\WWW\logistic\eetoday\Lib\Action\CategoryAction.class.php (23) Model->count()
[19-10-17 09:01:10] () CategoryAction->view()
[19-10-17 09:01:10] C:\phpStudy\WWW\logistic\ThinkPHP\Lib\Core\App.class.php (169) ReflectionMethod->invoke()
[19-10-17 09:01:10] C:\phpStudy\WWW\logistic\ThinkPHP\Lib\Core\App.class.php (205) App::exec()
[19-10-17 09:01:10] C:\phpStudy\WWW\logistic\ThinkPHP\Lib\Core\Think.class.php (39) App::run()
[19-10-17 09:01:10] C:\phpStudy\WWW\logistic\ThinkPHP\Common\runtime.php (243) Think::start()
[19-10-17 09:01:10] C:\phpStudy\WWW\logistic\ThinkPHP\ThinkPHP.php (30) require(C:\phpStudy\WWW\logistic\ThinkPHP\Common\runtime.php)
[19-10-17 09:01:10] C:\phpStudy\WWW\logistic\index.php (14) require(C:\phpStudy\WWW\logistic\ThinkPHP\ThinkPHP.php)