威尼斯欢乐娱人·(v3676-网站VIP认证)·百度百科

[10501] PDOException in Connection.php line 385

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and delete_time=0 )' at line 1

  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 `id` FROM `cm...', [], false, false) in Query.php line 255
  3. at Query->query('SELECT `id` FROM `cm...', [], false, false) in Query.php line 2523
  4. at Query->select() in PortalCategoryModel.php line 200
  5. at PortalCategoryModel->getCategoryChildId(null) in ListController.php line 76
  6. at ListController->index()
  7. at ReflectionMethod->invokeArgs(object(ListController), []) in App.php line 343
  8. at App::invokeMethod([object(ListController), 'index'], []) in App.php line 621
  9. at App::module(['portal', 'list', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  10. at App::exec(['type' => 'module', 'module' => ['portal', 'list', 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  11. at App::run() in index.php line 57

Exception Datas

PDO Error Info
SQLSTATE 42000
Driver Error Code 1064
Driver Error Message You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and delete_time=0 )' at line 1
Database Status
Error Code 10501
Error Message SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and delete_time=0 )' at line 1
Error SQL SELECT `id` FROM `cmf_portal_category` WHERE ( parent_id= and delete_time=0 )
Database Config
type mysql
hostname 127.0.0.1
database zhguangyan_db
hostport 3306
dsn
params []
charset utf8mb4
prefix cmf_
debug true
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
fields_strict true
result_type 2
resultset_type collection
auto_timestamp false
datetime_format Y-m-d H:i:s
sql_explain false
builder
query \think\db\Query
break_reconnect false
authcode 3WpL6SOZ8s5r1poMQc

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

PHPSESSID
te942jb8uvs99jg6ddf38cpc8b

Session

langs
s
lang_template
pc_cn

Server/Request Data

USER
zhguangyan
HOME
/home/zhguangyan
SCRIPT_NAME
/index.php
REQUEST_URI
//portal/list/index.html
QUERY_STRING
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_URL
/portal/list/index.html
REMOTE_PORT
44516
SCRIPT_FILENAME
/home/zhguangyan/domains/zhguangyan.gz19.hostadm.net/public_html/index.php
SERVER_ADMIN
webmaster@zhguangyan.gz19.hostadm.net
CONTEXT_DOCUMENT_ROOT
/home/zhguangyan/domains/zhguangyan.gz19.hostadm.net/public_html
CONTEXT_PREFIX
REQUEST_SCHEME
http
DOCUMENT_ROOT
/home/zhguangyan/domains/zhguangyan.gz19.hostadm.net/public_html
REMOTE_ADDR
170.130.202.118
SERVER_PORT
80
SERVER_ADDR
103.41.232.119
SERVER_NAME
www.gyoptics.com
SERVER_SOFTWARE
Apache/2
SERVER_SIGNATURE
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_COOKIE
PHPSESSID=te942jb8uvs99jg6ddf38cpc8b
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.gyoptics.com
HTTP_USER_AGENT
CCBot/2.0 (https://commoncrawl.org/faq/)
proxy-nokeepalive
1
UNIQUE_ID
Zpys8ZaCAGkEHe9LNZqJCgAAACo
REDIRECT_STATUS
200
REDIRECT_PATH_INFO
portal/list/index.html
REDIRECT_UNIQUE_ID
Zpys8ZaCAGkEHe9LNZqJCgAAACo
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1721543921.8146
REQUEST_TIME
1721543921
PATH_INFO
portal/list/index.html
Environment Variables
empty

ThinkPHP Constants

APP_DEBUG
true
CMF_ROOT
/home/zhguangyan/domains/zhguangyan.gz19.hostadm.net/public_html/
APP_PATH
/home/zhguangyan/domains/zhguangyan.gz19.hostadm.net/public_html/app/
UPLOAD_PATH
/home/zhguangyan/domains/zhguangyan.gz19.hostadm.net/public_html/upload/
CMF_PATH
/home/zhguangyan/domains/zhguangyan.gz19.hostadm.net/public_html/simplewind/cmf/
PLUGINS_PATH
/home/zhguangyan/domains/zhguangyan.gz19.hostadm.net/public_html/plugins/
EXTEND_PATH
/home/zhguangyan/domains/zhguangyan.gz19.hostadm.net/public_html/simplewind/extend/
VENDOR_PATH
/home/zhguangyan/domains/zhguangyan.gz19.hostadm.net/public_html/simplewind/vendor/
RUNTIME_PATH
/home/zhguangyan/domains/zhguangyan.gz19.hostadm.net/public_html/data/runtime/
THINKCMF_VERSION
5.0.170927
SO
is_top DESC,list_order DESC,published_time DESC,post_id DESC
GSO
is_top DESC,category_relate.list_order DESC,published_time DESC,goods_id DESC
TMPLSO
order:is_top DESC,list_order DESC,published_time DESC,post_id DESC;
TMPLGSO
order:is_top DESC,category_relate.list_order DESC,published_time DESC,goods_id DESC;
WEB_ROOT
/home/zhguangyan/domains/zhguangyan.gz19.hostadm.net/public_html/
THINK_VERSION
5.0.24
THINK_START_TIME
1721543921.8157
THINK_START_MEM
421600
EXT
.php
DS
/
THINK_PATH
/home/zhguangyan/domains/zhguangyan.gz19.hostadm.net/public_html/simplewind/thinkphp/
LIB_PATH
/home/zhguangyan/domains/zhguangyan.gz19.hostadm.net/public_html/simplewind/thinkphp/library/
CORE_PATH
/home/zhguangyan/domains/zhguangyan.gz19.hostadm.net/public_html/simplewind/thinkphp/library/think/
TRAIT_PATH
/home/zhguangyan/domains/zhguangyan.gz19.hostadm.net/public_html/simplewind/thinkphp/library/traits/
ROOT_PATH
/home/zhguangyan/domains/zhguangyan.gz19.hostadm.net/public_html/
LOG_PATH
/home/zhguangyan/domains/zhguangyan.gz19.hostadm.net/public_html/data/runtime/log/
CACHE_PATH
/home/zhguangyan/domains/zhguangyan.gz19.hostadm.net/public_html/data/runtime/cache/
TEMP_PATH
/home/zhguangyan/domains/zhguangyan.gz19.hostadm.net/public_html/data/runtime/temp/
CONF_PATH
/home/zhguangyan/domains/zhguangyan.gz19.hostadm.net/public_html/app/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
HTMLPURIFIER_PREFIX
/home/zhguangyan/domains/zhguangyan.gz19.hostadm.net/public_html/simplewind/vendor/ezyang/htmlpurifier/library
QINIU_FUNCTIONS_VERSION
7.2.1
ERR_INVALID_IMAGE
1
ERR_NO_GD
2
ERR_IMAGE_NOT_EXISTS
3
ERR_DIRECTORY_READONLY
4
ERR_UPLOAD_FAILURE
5
ERR_INVALID_PARAM
6
ERR_INVALID_IMAGE_TYPE
7
ERR_COPYFILE_FAILED
1
ERR_CREATETABLE_FAILED
2
ERR_DELETEFILE_FAILED
3
ATTR_TEXT
0
ATTR_OPTIONAL
1
ATTR_TEXTAREA
2
ATTR_URL
3
ERR_USERNAME_EXISTS
1
ERR_EMAIL_EXISTS
2
ERR_INVALID_USERID
3
ERR_INVALID_USERNAME
4
ERR_INVALID_PASSWORD
5
ERR_INVALID_EMAIL
6
ERR_USERNAME_NOT_ALLOW
7
ERR_EMAIL_NOT_ALLOW
8
ERR_MOBILE_PHONE_EXISTS
9
ERR_INVALID_MOBILE_PHONE
10
ERR_MOBILE_PHONE_NOT_ALLOW
11
ERR_INVALID_REGISTER_TYPE
12
ERR_NOT_EXISTS
1
ERR_OUT_OF_STOCK
2
ERR_NOT_ON_SALE
3
ERR_CANNT_ALONE_SALE
4
ERR_NO_BASIC_GOODS
5
ERR_NEED_SELECT_ATTR
6
CART_GENERAL_GOODS
0
CART_GROUP_BUY_GOODS
1
CART_AUCTION_GOODS
2
CART_SNATCH_GOODS
3
CART_EXCHANGE_GOODS
4
CART_PRE_SALE_GOODS
6
CART_VIRTUAL_GROUP_GOODS
7
OS_UNCONFIRMED
0
OS_CONFIRMED
1
OS_CANCELED
2
OS_INVALID
3
OS_RETURNED
4
OS_SPLITED
5
OS_SPLITING_PART
6
PAY_ORDER
0
PAY_SURPLUS
1
SS_UNSHIPPED
0
SS_SHIPPED
1
SS_RECEIVED
2
SS_PREPARING
3
SS_SHIPPED_PART
4
SS_SHIPPED_ING
5
OS_SHIPPED_PART
6
PS_UNPAYED
0
PS_PAYING
1
PS_PAYED
2
PS_REFUND
3
CS_AWAIT_PAY
100
CS_AWAIT_SHIP
101
CS_UNKNOW
99
CS_UNPAY
100
CS_UNWORK
101
CS_CHECKED
102
CS_SPLITED_PART
103
CS_SPLITED
104
CS_SHIPPED_PART
105
CS_SHIPPED
106
CS_RECEIVED_PART
107
CS_RECEIVED
108
CS_FINISHED
109
CS_CANCEL
110
CS_RETURNING
111
CS_PAY_RETURNING
112
CS_PAY_RETURNED
113
CS_PAY_RETURNING_REJECT
114
CS_PAY_RETURNED_REJECT
115
CS_PAY_RETURNING_ADMIN_REJECT
116
CS_CHECKED_NO_SHIP
117
CS_CHECKED_CAN_SHIP
118
CAN_NOT
0
CAN_PAY
1
CAN_CANCEL
2
CAN_REFUND
3
CAN_RETURN
4
CAN_RECEIVED
5
CAN_COMMENT
6
CAN_SHAIDAN
7
OOS_WAIT
0
OOS_CANCEL
1
OOS_CONSULT
2
SDT_SHIP
0
SDT_PLACE
1
SEND_BY_USER
0
SEND_BY_GOODS
1
SEND_BY_ORDER
2
SEND_BY_PRINT
3
SEND_BY_REGISTER
5
SEND_BY_ONLINE
4
SEND_BY_LEAGUE
6
SEND_BY_FREE_BUY
7
SEND_BY_ON_LINE
8
SURPLUS_SAVE
0
SURPLUS_RETURN
1
ACT_SAVING
0
ACT_DRAWING
1
ACT_ADJUSTING
2
ACT_OTHER
99
HN_CHARSET
utf-8
USE_STORAGE
1
STOCK_DEC_TIME
1
INTEGRAL_SCALE
1
MIN_GOODS_AMOUNT
0
DIVIDE_TYPE_SECKILL
3
DIVIDE_TYPE_GROUP
3
DIVIDE_TYPE_BARGAIN
1
FAR_ALL
0
FAR_CATEGORY
1
FAR_BRAND
2
FAR_GOODS
3
FAT_GOODS
0
FAT_PRICE
1
FAT_DISCOUNT
2
FAT_FREESHIPPING
3
GROUP_BUY_CODE
group_by
GBS_PRE_START
0
GBS_UNDER_WAY
1
GBS_FINISHED
2
GBS_SUCCEED
3
GBS_FAIL
4
PRE_SALE_CODE
pre_sale
VIRTUAL_SALE_CODE
virtual_good
PSS_PRE_START
0
PSS_UNDER_WAY
1
PSS_FINISHED
2
PSS_SUCCEED
3
PSS_FAIL
4
IS_WECHAT_FALSE
1
IS_WECHAT_TRUE
2
XML 地图