[10501] PDOException in Connection.php line 385

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'Line' in 'where clause'

  1. $this->PDOStatement->execute();
  2. // 调试结束
  3. $this->debug(false, '', $master);
  4. // 返回结果集
  5. return $this->getResult($pdo, $procedure);
  6. } catch (\PDOException $e) {
  7. if ($this->isBreak($e)) {
  8. return $this->close()->query($sql, $bind, $master, $pdo);
  9. }
  10. throw new PDOException($e, $this->config, $this->getLastsql());
  11. } catch (\Throwable $e) {
  12. if ($this->isBreak($e)) {
  13. return $this->close()->query($sql, $bind, $master, $pdo);
  14. }
  15. throw $e;
  16. } catch (\Exception $e) {
  17. if ($this->isBreak($e)) {
  18. return $this->close()->query($sql, $bind, $master, $pdo);
  19. }

Call Stack

  1. in Connection.php line 385
  2. at Connection->query('SELECT * FROM `snake...', [], false, false) in Query.php line 255
  3. at Query->query('SELECT * FROM `snake...', [], false, false) in Query.php line 2686
  4. at Query->find() in News.php line 119
  5. at News->indexb()
  6. at ReflectionMethod->invokeArgs(object(News), []) in App.php line 343
  7. at App::invokeMethod([object(News), 'indexb'], []) in App.php line 611
  8. at App::module(['index', 'news', 'indexb'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 457
  9. at App::exec(['type' => 'module', 'module' => ['index', 'news', 'indexb']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  10. at App::run() in start.php line 19
  11. at require('/www/wwwroot/mega-ph...') in index.php line 21

Exception Datas

PDO Error Info
SQLSTATE 42S22
Driver Error Code 1054
Driver Error Message Unknown column 'Line' in 'where clause'
Database Status
Error Code 10501
Error Message SQLSTATE[42S22]: Column not found: 1054 Unknown column 'Line' in 'where clause'
Error SQL SELECT * FROM `snake_cate` WHERE ( id=Line ) ORDER BY `sort` DESC,`id` ASC LIMIT 1
Database Config
type mysql
hostname 127.0.0.1
database mega_phase_cn
hostport
dsn
params []
charset utf8
prefix snake_
debug true
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
fields_strict true
result_type 2
resultset_type array
auto_timestamp false
datetime_format Y-m-d H:i:s
sql_explain false
builder
query \think\db\Query
break_reconnect false

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/www/wwwroot/mega-phase.cn/index.php
QUERY_STRING
s=/index/news/indexb/pid/Line
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/index/news/indexb/pid/Line
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/www/wwwroot/mega-phase.cn
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.24.0
REMOTE_ADDR
44.220.41.140
REMOTE_PORT
41036
SERVER_ADDR
172.20.11.216
SERVER_PORT
80
SERVER_NAME
mega-phase.cn
REDIRECT_STATUS
200
PATH_INFO
/index/news/indexb/pid/Line
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_HOST
www.mega-phase.cn
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711649899.687
REQUEST_TIME
1711649899
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/mega-phase.cn/application/
RUNTIME_PATH
/www/wwwroot/mega-phase.cn/runtime/
APP_DEBUG
true
THINK_VERSION
5.0.24
THINK_START_TIME
1711649899.6874
THINK_START_MEM
259992
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/mega-phase.cn/thinkphp/
LIB_PATH
/www/wwwroot/mega-phase.cn/thinkphp/library/
CORE_PATH
/www/wwwroot/mega-phase.cn/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/mega-phase.cn/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/mega-phase.cn/
EXTEND_PATH
/www/wwwroot/mega-phase.cn/extend/
VENDOR_PATH
/www/wwwroot/mega-phase.cn/vendor/
LOG_PATH
/www/wwwroot/mega-phase.cn/runtime/log/
CACHE_PATH
/www/wwwroot/mega-phase.cn/runtime/cache/
TEMP_PATH
/www/wwwroot/mega-phase.cn/runtime/temp/
CONF_PATH
/www/wwwroot/mega-phase.cn/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false