[10501] PDOException in Connection.php line 385

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'svdw_gsxx' 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 image,url FRO...')
  3. at call_user_func_array([object(Mysql), 'query'], ['SELECT image,url FRO...']) in Db.php line 178
  4. at Db::__callStatic('query', ['SELECT image,url FRO...']) in IndexService.php line 91
  5. at IndexService->index([]) in Index.php line 83
  6. at Index->index()
  7. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  8. at App::invokeMethod([object(Index), 'index'], []) in App.php line 611
  9. at App::module(['home', 'index', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  10. at App::exec(['type' => 'module', 'module' => ['home', 'index', 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  11. at App::run() in start.php line 56
  12. at require('/www/wwwroot/synchro...') in index.php line 23

Exception Datas

PDO Error Info
SQLSTATE 42S22
Driver Error Code 1054
Driver Error Message Unknown column 'svdw_gsxx' in 'where clause'
Database Status
Error Code 10501
Error Message SQLSTATE[42S22]: Column not found: 1054 Unknown column 'svdw_gsxx' in 'where clause'
Error SQL SELECT image,url FROM szedu.`sz_image` WHERE ( `province_id` = svdw_gsxx AND `pid` = 28 AND `status` = 1 AND `delete_time` IS NULL) OR ( `province_id` = 0 AND `pid` = 28 AND `status` = 1 AND `delete_time` IS NULL) ORDER BY sort asc,create_time desc LIMIT 6
Database Config
type mysql
hostname 192.168.0.84
database szedu2
hostport 3306
dsn
params []
charset utf8
prefix sz_
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

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty

Session

think
{ "sel_city": null, "province_id": "svdw_gsxx", "sel_city_name": null, "user_ip": "4e540755bb23f38f66692efa7157fbaf69263&Hdu6lf" }

Server/Request Data

USER
www
HOME
/home/www
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
www.sz517.com
PATH_INFO
/index/index/sel_city/svdw_gsxx
REDIRECT_STATUS
200
SERVER_NAME
www.sz517.com
SERVER_PORT
443
SERVER_ADDR
192.168.0.217
REMOTE_PORT
45206
REMOTE_ADDR
18.232.185.167
SERVER_SOFTWARE
nginx/1.18.0
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/www/wwwroot/synchro/szedu2/public
DOCUMENT_URI
/index.php
REQUEST_URI
/index/index/sel_city/svdw_gsxx
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/index/index/sel_city/svdw_gsxx
SCRIPT_FILENAME
/www/wwwroot/synchro/szedu2/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711698668.7567
REQUEST_TIME
1711698668
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/synchro/szedu2/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711698668.757
THINK_START_MEM
418888
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/synchro/szedu2/thinkphp/
LIB_PATH
/www/wwwroot/synchro/szedu2/thinkphp/library/
CORE_PATH
/www/wwwroot/synchro/szedu2/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/synchro/szedu2/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/synchro/szedu2/
EXTEND_PATH
/www/wwwroot/synchro/szedu2/extend/
VENDOR_PATH
/www/wwwroot/synchro/szedu2/vendor/
RUNTIME_PATH
/www/wwwroot/synchro/szedu2/runtime/
LOG_PATH
/www/wwwroot/synchro/szedu2/runtime/log/
CACHE_PATH
/www/wwwroot/synchro/szedu2/runtime/cache/
TEMP_PATH
/www/wwwroot/synchro/szedu2/runtime/temp/
CONF_PATH
/www/wwwroot/synchro/szedu2/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/www/wwwroot/synchro/szedu2/addons/
LAYER_CONTROLLER_NAME
controller
LAYER_LOGIC_NAME
logic
LAYER_SERVICE_NAME
service
LAYER_MODEL_NAME
model
LAYER_VALIDATE_NAME
validate
LAYER_VIEW_NAME
view
API_KEY
SZEDU
JWT_KEY
SZEDU