乐8彩注册

错误语句:SELECT * FROM `tp_article` WHERE ( article_id=Home ) LIMIT 1

[10501] PDOException in Connection.php line 391

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

  1. // 调试结束
  2. $this->debug(false);
  3. // 返回结果集
  4. return $this->getResult($pdo, $procedure);
  5. } catch (\PDOException $e) {
  6. if ($this->isBreak($e)) {
  7. return $this->close()->query($sql, $bind, $master, $pdo);
  8. }
  9. echo '错误语句:'. $sql;
  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. echo '错误语句:'. $sql;
  16. throw $e;
  17. } catch (\Exception $e) {
  18. if ($this->isBreak($e)) {
  19. return $this->close()->query($sql, $bind, $master, $pdo);

Call Stack

  1. in Connection.php line 391
  2. at Connection->query('SELECT * FROM `tp_ar...', [], false, false) in Query.php line 227
  3. at Query->query('SELECT * FROM `tp_ar...', [], false, false) in Query.php line 2501
  4. at Query->find() in Index.php line 259
  5. at Index->article()
  6. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 346
  7. at App::invokeMethod([object(Index), 'article'], []) in App.php line 614
  8. at App::module(['Home', 'Index', 'article'], ['app_host' => '', 'app_debug' => 'ture', 'app_trace' => false, ...], null) in App.php line 460
  9. at App::exec(['type' => 'module', 'module' => ['Home', 'Index', 'article']], ['app_host' => '', 'app_debug' => 'ture', 'app_trace' => false, ...]) in App.php line 142
  10. at App::run() in start.php line 19
  11. at require('/webapp/wwwroot/www....') in index.php line 60

Exception Datas

PDO Error Info
SQLSTATE 42S22
Driver Error Code 1054
Driver Error Message Unknown column 'Home' in 'where clause'
Database Status
Error Code 10501
Error Message SQLSTATE[42S22]: Column not found: 1054 Unknown column 'Home' in 'where clause'
Error SQL SELECT * FROM `tp_article` WHERE ( article_id=Home ) LIMIT 1
Database Config
type mysql
hostname localhost
database www_mlhjz_cn
hostport 3306
dsn
params []
charset utf8
prefix tp_
debug true
deploy 0
rw_separate false
master_num 1
slave_no
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

id
Home
Index
lxwm
POST Data
empty
Files
empty

Cookies

PHPSESSID
85ikedtvtcvb944bn8tkppe3s4
is_mobile
0
Session
empty

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/webapp/wwwroot/www.mlhjz.cn/index.php
QUERY_STRING
REQUEST_METHOD
GET
CONTENT_TYPE
application/x-www-form-urlencoded
CONTENT_LENGTH
0
SCRIPT_NAME
/index.php
REQUEST_URI
//Home/Index/article/id/Home/Index/lxwm.html
DOCUMENT_URI
/index.php/Home/Index/article/id/Home/Index/lxwm.html
DOCUMENT_ROOT
/webapp/wwwroot/www.mlhjz.cn
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.14.0
REMOTE_ADDR
166.88.199.10
REMOTE_PORT
43648
SERVER_ADDR
192.168.193.199
SERVER_PORT
80
SERVER_NAME
www.mlhjz.cn
REDIRECT_STATUS
200
PATH_INFO
/Home/Index/article/id/Home/Index/lxwm.html
HTTP_HOST
www.mlhjz.cn
HTTP_USER_AGENT
Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
HTTP_ACCEPT
*/*
HTTP_COOKIE
PHPSESSID=85ikedtvtcvb944bn8tkppe3s4; is_mobile=0
HTTP_ACCEPT_CHARSET
utf-8
HTTP_CONTENT_LENGTH
0
HTTP_CONTENT_TYPE
application/x-www-form-urlencoded
PHP_SELF
/index.php/Home/Index/article/id/Home/Index/lxwm.html
REQUEST_TIME_FLOAT
1586041353.9781
REQUEST_TIME
1586041353
Environment Variables
empty

ThinkPHP Constants

PLUGIN_PATH
/webapp/wwwroot/www.mlhjz.cn/plugins/
UPLOAD_PATH
public/upload/
TPSHOP_CACHE_TIME
1
SITE_URL
http://www.mlhjz.cn
INSTALL_DATE
1463741583
SERIALNUMBER
20160520065303oCWIoa
APP_PATH
/webapp/wwwroot/www.mlhjz.cn/application/
NOW_TIME
1586041353
THINK_VERSION
5.0.15
THINK_START_TIME
1586041353.9785
THINK_START_MEM
245352
EXT
.php
DS
/
THINK_PATH
/webapp/wwwroot/www.mlhjz.cn/thinkphp/
LIB_PATH
/webapp/wwwroot/www.mlhjz.cn/thinkphp/library/
CORE_PATH
/webapp/wwwroot/www.mlhjz.cn/thinkphp/library/think/
TRAIT_PATH
/webapp/wwwroot/www.mlhjz.cn/thinkphp/library/traits/
ROOT_PATH
/webapp/wwwroot/www.mlhjz.cn/
EXTEND_PATH
/webapp/wwwroot/www.mlhjz.cn/extend/
VENDOR_PATH
/webapp/wwwroot/www.mlhjz.cn/vendor/
RUNTIME_PATH
/webapp/wwwroot/www.mlhjz.cn/runtime/
LOG_PATH
/webapp/wwwroot/www.mlhjz.cn/runtime/log/
CACHE_PATH
/webapp/wwwroot/www.mlhjz.cn/runtime/cache/
TEMP_PATH
/webapp/wwwroot/www.mlhjz.cn/runtime/temp/
CONF_PATH
/webapp/wwwroot/www.mlhjz.cn/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
DOMAINNAME_MLH
https://www.mlhjz.cn/
IS_CLI
false
IS_WIN
false
IS_AJAX
false
IS_GET
true
IS_POST
false
MODULE_NAME
home
CONTROLLER_NAME
Index
ACTION_NAME
article
PREFIX
tp_
SESSION_ID