[10501] PDOException in Connection.php line 385

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cart' 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 `my_te...', [], false, false) in Query.php line 255
  3. at Query->query('SELECT * FROM `my_te...', [], false, false) in Query.php line 2687
  4. at Query->find() in Pro.php line 134
  5. at Pro->inquire()
  6. at ReflectionMethod->invokeArgs(object(Pro), []) in App.php line 343
  7. at App::invokeMethod([object(Pro), 'inquire'], []) in App.php line 611
  8. at App::module(['home', 'Pro', 'inquire'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  9. at App::exec(['type' => 'module', 'module' => ['home', 'Pro', 'inquire'], 'convert' => false], ['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('/mnt/wwwroot/afaiths...') in index.php line 18

Exception Datas

PDO Error Info
SQLSTATE 42S22
Driver Error Code 1054
Driver Error Message Unknown column 'cart' in 'where clause'
Database Status
Error Code 10501
Error Message SQLSTATE[42S22]: Column not found: 1054 Unknown column 'cart' in 'where clause'
Error SQL SELECT * FROM `my_tech` WHERE ( id= cart ) ORDER BY `id` DESC LIMIT 1
Database Config
type mysql
hostname 127.0.0.1
database afaithstone_huud
hostport
dsn
params []
charset utf8
prefix my_
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 false
sql_explain false
builder
query \think\db\Query
break_reconnect false
auto_datetime_format false

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
www.afaithstone.com
PATH_INFO
/inquire/cart
REDIRECT_STATUS
200
SERVER_NAME
www.afaithstone.com
SERVER_PORT
443
SERVER_ADDR
10.200.0.10
REMOTE_PORT
47376
REMOTE_ADDR
54.157.61.194
SERVER_SOFTWARE
nginx/1.17.10
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/mnt/wwwroot/afaithstone.huudon.cn
DOCUMENT_URI
/index.php
REQUEST_URI
/inquire/cart
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/inquire/cart
SCRIPT_FILENAME
/mnt/wwwroot/afaithstone.huudon.cn/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1710821127.4284
REQUEST_TIME
1710821127
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/mnt/wwwroot/afaithstone.huudon.cn/application/
THINK_VERSION
5.0.24
THINK_START_TIME
1710821127.4289
THINK_START_MEM
404064
EXT
.php
DS
/
THINK_PATH
/mnt/wwwroot/afaithstone.huudon.cn/thinkphp/
LIB_PATH
/mnt/wwwroot/afaithstone.huudon.cn/thinkphp/library/
CORE_PATH
/mnt/wwwroot/afaithstone.huudon.cn/thinkphp/library/think/
TRAIT_PATH
/mnt/wwwroot/afaithstone.huudon.cn/thinkphp/library/traits/
ROOT_PATH
/mnt/wwwroot/afaithstone.huudon.cn/
EXTEND_PATH
/mnt/wwwroot/afaithstone.huudon.cn/extend/
VENDOR_PATH
/mnt/wwwroot/afaithstone.huudon.cn/vendor/
RUNTIME_PATH
/mnt/wwwroot/afaithstone.huudon.cn/runtime/
LOG_PATH
/mnt/wwwroot/afaithstone.huudon.cn/runtime/log/
CACHE_PATH
/mnt/wwwroot/afaithstone.huudon.cn/runtime/cache/
TEMP_PATH
/mnt/wwwroot/afaithstone.huudon.cn/runtime/temp/
CONF_PATH
/mnt/wwwroot/afaithstone.huudon.cn/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
QINIU_FUNCTIONS_VERSION
7.2.2
DM
http://xmxslb.com