[10501] PDOException in Connection.php line 385

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'list' 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() in Query.php line 255
  3. at Query->query() in Query.php line 2470
  4. at Query->getPdo() in Query.php line 441
  5. at Query->value() in Query.php line 576
  6. at Query->aggregate() in Query.php line 551
  7. at Query->count() in Query.php line 1484
  8. at Query->paginate() in Index.php line 111
  9. at Index->product()
  10. at call_user_func_array() in Route.php line 76
  11. at Route->execute()
  12. at ReflectionMethod->invokeArgs() in App.php line 343
  13. at App::invokeMethod() in App.php line 470
  14. at App::exec() in App.php line 139
  15. at App::run() in start.php line 19
  16. at require('/data/wwwroot/www.da...') in index.php line 23

Exception Datas

PDO Error Info
SQLSTATE 42S22
Driver Error Code 1054
Driver Error Message Unknown column 'list' in 'where clause'
Database Status
Error Code 10501
Error Message SQLSTATE[42S22]: Column not found: 1054 Unknown column 'list' in 'where clause'
Error SQL SELECT COUNT(*) AS tp_count FROM `wwh_product` WHERE ( find_in_set(list-3, `pids`) ) LIMIT 1
Database Config
type mysql
hostname 127.0.0.1
database www_damaikeji_net
hostport
dsn
params []
charset utf8mb4
prefix
debug false
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 false
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
HTTP_HOST
damaikeji.net
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
PATH_INFO
//product/list-3.html
PHP_ADMIN_VALUE
open_basedir=/data/wwwroot/:/tmp/:/proc/
REDIRECT_STATUS
200
SERVER_NAME
www.damaikeji.net
SERVER_PORT
80
SERVER_ADDR
10.0.0.17
REMOTE_PORT
35316
REMOTE_ADDR
54.173.43.215
SERVER_SOFTWARE
nginx/1.24.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/data/wwwroot/www.damaikeji.net/public
DOCUMENT_URI
/index.php
REQUEST_URI
/product/list-3.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=//product/list-3.html
SCRIPT_FILENAME
/data/wwwroot/www.damaikeji.net/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
REQUEST_TIME_FLOAT
1711620961.9849
REQUEST_TIME
1711620961
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/data/wwwroot/www.damaikeji.net/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711620961.9854
THINK_START_MEM
408728
EXT
.php
DS
/
THINK_PATH
/data/wwwroot/www.damaikeji.net/thinkphp/
LIB_PATH
/data/wwwroot/www.damaikeji.net/thinkphp/library/
CORE_PATH
/data/wwwroot/www.damaikeji.net/thinkphp/library/think/
TRAIT_PATH
/data/wwwroot/www.damaikeji.net/thinkphp/library/traits/
ROOT_PATH
/data/wwwroot/www.damaikeji.net/
EXTEND_PATH
/data/wwwroot/www.damaikeji.net/extend/
VENDOR_PATH
/data/wwwroot/www.damaikeji.net/vendor/
RUNTIME_PATH
/data/wwwroot/www.damaikeji.net/runtime/
LOG_PATH
/data/wwwroot/www.damaikeji.net/runtime/log/
CACHE_PATH
/data/wwwroot/www.damaikeji.net/runtime/cache/
TEMP_PATH
/data/wwwroot/www.damaikeji.net/runtime/temp/
CONF_PATH
/data/wwwroot/www.damaikeji.net/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
ADDON_PATH
/data/wwwroot/www.damaikeji.net/addons/