腾讯分分彩

[10501] PDOException in Connection.php line 388

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

  1. $this->PDOStatement->execute();
  2. // 调试结束
  3. $this->debug(false);
  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 (\Exception $e) {
  12. if ($this->isBreak($e)) {
  13. return $this->close()->query($sql, $bind, $master, $pdo);
  14. }
  15. throw $e;
  16. }
  17. }
  18. /**

Call Stack

  1. in Connection.php line 388
  2. at Connection->query('SELECT COUNT(*) AS t...', ['where_catid_in_1' => ['115', 1]], false, true) in Query.php line 241
  3. at Query->query('SELECT COUNT(*) AS t...', ['where_catid_in_1' => ['115', 1]], false, true) in Query.php line 2281
  4. at Query->getPdo() in Query.php line 427
  5. at Query->value('COUNT(*) AS tp_count', 0, true) in Query.php line 533
  6. at Query->count() in Query.php line 1354
  7. at Query->paginate(null) in EmptyController.php line 150
  8. at EmptyController->index()
  9. at ReflectionMethod->invokeArgs(object(EmptyController), []) in App.php line 197
  10. at App::invokeMethod([object(EmptyController), 'index'], []) in App.php line 411
  11. at App::module(['home', 'service', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 296
  12. at App::exec(['type' => 'module', 'module' => ['home', 'service', 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 124
  13. at App::run() in start.php line 18
  14. at require('/data/website/www.sx...') in index.php line 22

Exception Datas

PDO Error Info
SQLSTATE 42S22
Driver Error Code 1054
Driver Error Message Unknown column 'is_show' in 'where clause'
Database Status
Error Code 10501
Error Message SQLSTATE[42S22]: Column not found: 1054 Unknown column 'is_show' in 'where clause'
Error SQL SELECT COUNT(*) AS tp_count FROM `clt_perform` `a` LEFT JOIN `clt_category` `c` ON `a`.`catid`=`c`.`id` WHERE `catid` IN (115) AND `is_show` = 'Y' LIMIT 1
Database Config
type mysql
hostname 127.0.0.1
database sxtour
hostport 3306
dsn
params []
charset utf8
prefix clt_
debug true
deploy 0
rw_separate false
master_num 1
slave_no
fields_strict false
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
empty
POST Data
empty
Files
empty

Cookies

PHPSESSID
2f76digfbn62392b4d6le7jn14
Session
empty

Server/Request Data

USER
apache
HOME
/usr/share/httpd
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/data/website/www.sxtourgroup.com/webroot/index.php
QUERY_STRING
s=home-service-index-catId-115-catdir-service.html
REQUEST_METHOD
GET
CONTENT_TYPE
application/x-www-form-urlencoded
CONTENT_LENGTH
0
SCRIPT_NAME
/index.php
REQUEST_URI
/home-service-index-catId-115-catdir-service.html
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/data/website/www.sxtourgroup.com/webroot
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.12.2
REMOTE_ADDR
173.252.195.154
REMOTE_PORT
52324
SERVER_ADDR
172.24.185.76
SERVER_PORT
80
SERVER_NAME
www.sxtourgroup.com
REDIRECT_STATUS
200
HTTP_USER_AGENT
Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
HTTP_HOST
www.sxtourgroup.com
HTTP_ACCEPT
*/*
HTTP_COOKIE
PHPSESSID=2f76digfbn62392b4d6le7jn14
HTTP_ACCEPT_CHARSET
utf-8
HTTP_CONTENT_LENGTH
0
HTTP_CONTENT_TYPE
application/x-www-form-urlencoded
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1555509570.9038
REQUEST_TIME
1555509570
PATH_INFO
home-service-index-catId-115-catdir-service.html
Environment Variables
empty

ThinkPHP Constants

__PUBLIC__
/public
APP_PATH
/data/website/www.sxtourgroup.com/release/372/app/
DATA_PATH
/data/website/www.sxtourgroup.com/release/372/runtime/Data/
PLUGIN_PATH
/data/website/www.sxtourgroup.com/release/372/plugins/
THINK_VERSION
5.0.11
THINK_START_TIME
1555509570.9043
THINK_START_MEM
265368
EXT
.php
DS
/
THINK_PATH
/data/website/www.sxtourgroup.com/release/372/think/
LIB_PATH
/data/website/www.sxtourgroup.com/release/372/think/library/
CORE_PATH
/data/website/www.sxtourgroup.com/release/372/think/library/think/
TRAIT_PATH
/data/website/www.sxtourgroup.com/release/372/think/library/traits/
ROOT_PATH
/data/website/www.sxtourgroup.com/release/372/
EXTEND_PATH
/data/website/www.sxtourgroup.com/release/372/extend/
VENDOR_PATH
/data/website/www.sxtourgroup.com/release/372/vendor/
RUNTIME_PATH
/data/website/www.sxtourgroup.com/release/372/runtime/
LOG_PATH
/data/website/www.sxtourgroup.com/release/372/runtime/log/
CACHE_PATH
/data/website/www.sxtourgroup.com/release/372/runtime/cache/
TEMP_PATH
/data/website/www.sxtourgroup.com/release/372/runtime/temp/
CONF_PATH
/data/website/www.sxtourgroup.com/release/372/app/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
UPLOAD_PATH
./Uploads/
MAX_MENU_LENGTH
3
MAX_SUB_MENU_LENGTH
5
MODULE_NAME
service
ACTION_NAME
index
DBNAME
perform