#0 [10501]PDOException in PDOConnection.php line 797

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

  1. }
  2. } else {
  3. if ($this->reConnectTimes < 4 && $this->isBreak($e)) {
  4. ++$this->reConnectTimes;
  5. return $this->close()->getPDOStatement($sql, $bind, $master, $procedure);
  6. }
  7. }
  8. if ($e instanceof \PDOException) {
  9. throw new PDOException($e, $this->config, $this->getLastsql());
  10. } else {
  11. throw $e;
  12. }
  13. }
  14. }
  15. /**
  16. * 执行语句
  17. * @access protected

Call Stack

  1. in PDOConnection.php line 797
  2. at PDOConnection->getPDOStatement() in PDOConnection.php line 1181
  3. at PDOConnection->value() in PDOConnection.php line 1211
  4. at PDOConnection->aggregate() in AggregateQuery.php line 33
  5. at BaseQuery->aggregate() in AggregateQuery.php line 70
  6. at BaseQuery->count() in BaseQuery.php line 634
  7. at BaseQuery->paginate() in Website.php line 69
  8. at Website->index()
  9. at ReflectionMethod->invokeArgs() in Container.php line 344
  10. at Container->invokeReflectMethod() in Controller.php line 110
  11. at Controller->think\route\dispatch\{closure}() in Pipeline.php line 59
  12. at Pipeline->think\{closure}() in Pipeline.php line 66
  13. at Pipeline->then() in Controller.php line 113
  14. at Controller->exec() in Dispatch.php line 80
  15. at Dispatch->run() in Route.php line 793
  16. at Route->think\{closure}() in Pipeline.php line 59
  17. at Pipeline->think\{closure}() in Pipeline.php line 66
  18. at Pipeline->then() in Route.php line 794
  19. at Route->dispatch() in Http.php line 216
  20. at Http->dispatchToRoute() in Http.php line 206
  21. at Http->think\{closure}() in Pipeline.php line 59
  22. at Pipeline->think\{closure}() in MultiApp.php line 51
  23. at MultiApp->think\app\{closure}() in Pipeline.php line 59
  24. at Pipeline->think\{closure}() in Pipeline.php line 66
  25. at Pipeline->then() in MultiApp.php line 52
  26. at MultiApp->handle()
  27. at call_user_func() in Middleware.php line 142
  28. at Middleware->think\{closure}() in Pipeline.php line 85
  29. at Pipeline->think\{closure}() in SessionInit.php line 67
  30. at SessionInit->handle()
  31. at call_user_func() in Middleware.php line 142
  32. at Middleware->think\{closure}() in Pipeline.php line 85
  33. at Pipeline->think\{closure}() in Pipeline.php line 66
  34. at Pipeline->then() in Http.php line 207
  35. at Http->runWithRequest() in Http.php line 170
  36. at Http->run() in index.php line 43

Exception Datas

PDO Error Info
SQLSTATE 42S22
Driver Error Code 1054
Driver Error Message Unknown column 'name' in 'where clause'
Database Status
Error Code 10501
Error Message SQLSTATE[42S22]: Column not found: 1054 Unknown column 'name' in 'where clause'
Error SQL SELECT COUNT(*) AS think_count FROM `wdphp_website` WHERE ( `name` LIKE '%网络推广%' OR `keywords` LIKE '%网络推广%' OR `url` LIKE '%网络推广%' ) AND `status` = 1 AND `plan_time` <= 1711649143 LIMIT 1
Database Config
type mysql
hostname 127.0.0.1
database v3_zydir_com
hostport 3306
dsn
params []
charset utf8
prefix wdphp_
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
fields_strict true
fields_cache true
trigger_sql false
builder
query
break_reconnect false
break_match_str []
auto_param_bind true
schema_cache_path /www/wwwroot/v3.zydir.com/runtime/schema/

Environment Variables

GET Data
keywords 网络推广
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_HOST zydir.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME v3.zydir.com
SERVER_PORT 443
SERVER_ADDR 122.114.10.16
REMOTE_PORT 33348
REMOTE_ADDR 3.235.249.219
SERVER_SOFTWARE nginx/1.22.0
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /www/wwwroot/v3.zydir.com/public
DOCUMENT_URI /index.php
REQUEST_URI /website/index.html?keywords=%E7%BD%91%E7%BB%9C%E6%8E%A8%E5%B9%BF
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/website/index.html&keywords=%E7%BD%91%E7%BB%9C%E6%8E%A8%E5%B9%BF
SCRIPT_FILENAME /www/wwwroot/v3.zydir.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711649143.3477
REQUEST_TIME 1711649143