乐动ld体育(中国)百度百科

[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 ')' 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 180
  5. at PortalCategoryModel->getCategoryChildId(null) in ListController.php line 52
  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, ...], false) in App.php line 456
  10. at App::exec(['type' => 'module', 'module' => ['portal', 'List', 'index'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  11. at App::run() in index.php line 58

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 ')' 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 ')' at line 1
Error SQL SELECT `id` FROM `cmf_portal_category` WHERE ( parent_id= )
Database Config
type mysql
hostname 127.0.0.1
database tenghui_root
hostport 3306
dsn
params []
charset utf8
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
ef1fu9jp72uuncg0ak9jrh4ki3
Session
empty

Server/Request Data

USER
nginx
HOME
/var/lib/nginx
HTTP_COOKIE
PHPSESSID=ef1fu9jp72uuncg0ak9jrh4ki3
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.thsoft.cc
HTTP_USER_AGENT
Mozilla/5.0 (compatible; MJ12bot/v1.4.8; http://mj12bot.com/)
PATH_INFO
list/88.html
SCRIPT_FILENAME
/TH/www/webs/index.php
REDIRECT_STATUS
200
SERVER_NAME
www.thsoft.cc
SERVER_PORT
80
SERVER_ADDR
172.18.240.104
REMOTE_PORT
52682
REMOTE_ADDR
50.3.173.110
SERVER_SOFTWARE
nginx/1.16.1
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/TH/www/webs
DOCUMENT_URI
/index.php
REQUEST_URI
//list/88.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=list/88.html
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1716177071.0816
REQUEST_TIME
1716177071
Environment Variables
empty

ThinkPHP Constants

APP_DEBUG
true
CMF_ROOT
/TH/www/webs/
APP_PATH
/TH/www/webs/app/
UPLOAD_PATH
/TH/www/webs/upload/
CMF_PATH
/TH/www/webs/simplewind/cmf/
PLUGINS_PATH
/TH/www/webs/plugins/
EXTEND_PATH
/TH/www/webs/simplewind/extend/
VENDOR_PATH
/TH/www/webs/simplewind/vendor/
RUNTIME_PATH
/TH/www/webs/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
/TH/www/webs/
THINK_VERSION
5.0.24
THINK_START_TIME
1716177071.0818
THINK_START_MEM
397928
EXT
.php
DS
/
THINK_PATH
/TH/www/webs/simplewind/thinkphp/
LIB_PATH
/TH/www/webs/simplewind/thinkphp/library/
CORE_PATH
/TH/www/webs/simplewind/thinkphp/library/think/
TRAIT_PATH
/TH/www/webs/simplewind/thinkphp/library/traits/
ROOT_PATH
/TH/www/webs/
LOG_PATH
/TH/www/webs/data/runtime/log/
CACHE_PATH
/TH/www/webs/data/runtime/cache/
TEMP_PATH
/TH/www/webs/data/runtime/temp/
CONF_PATH
/TH/www/webs/app/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
U_IDNA_PROHIBITED_ERROR
66560
U_IDNA_ERROR_START
66560
U_IDNA_UNASSIGNED_ERROR
66561
U_IDNA_CHECK_BIDI_ERROR
66562
U_IDNA_STD3_ASCII_RULES_ERROR
66563
U_IDNA_ACE_PREFIX_ERROR
66564
U_IDNA_VERIFICATION_ERROR
66565
U_IDNA_LABEL_TOO_LONG_ERROR
66566
U_IDNA_ZERO_LENGTH_LABEL_ERROR
66567
U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR
66568
U_IDNA_ERROR_LIMIT
66569
U_STRINGPREP_PROHIBITED_ERROR
66560
U_STRINGPREP_UNASSIGNED_ERROR
66561
U_STRINGPREP_CHECK_BIDI_ERROR
66562
IDNA_DEFAULT
0
IDNA_ALLOW_UNASSIGNED
1
IDNA_USE_STD3_RULES
2
IDNA_CHECK_BIDI
4
IDNA_CHECK_CONTEXTJ
8
IDNA_NONTRANSITIONAL_TO_ASCII
16
IDNA_NONTRANSITIONAL_TO_UNICODE
32
INTL_IDNA_VARIANT_2003
0
INTL_IDNA_VARIANT_UTS46
1
IDNA_ERROR_EMPTY_LABEL
1
IDNA_ERROR_LABEL_TOO_LONG
2
IDNA_ERROR_DOMAIN_NAME_TOO_LONG
4
IDNA_ERROR_LEADING_HYPHEN
8
IDNA_ERROR_TRAILING_HYPHEN
16
IDNA_ERROR_HYPHEN_3_4
32
IDNA_ERROR_LEADING_COMBINING_MARK
64
IDNA_ERROR_DISALLOWED
128
IDNA_ERROR_PUNYCODE
256
IDNA_ERROR_LABEL_HAS_DOT
512
IDNA_ERROR_INVALID_ACE_LABEL
1024
IDNA_ERROR_BIDI
2048
IDNA_ERROR_CONTEXTJ
4096
HTMLPURIFIER_PREFIX
/TH/www/webs/simplewind/vendor/ezyang/htmlpurifier/library
QINIU_FUNCTIONS_VERSION
7.2.1
IS_WECHAT_FALSE
1
IS_WECHAT_TRUE
2