[10501] PDOException in Connection.php line 388

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 ') LIMIT 1' at line 1

  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 `id`,`catalog...', [], false, false) in Query.php line 227
  3. at Query->query('SELECT `id`,`catalog...', [], false, false) in Query.php line 2478
  4. at Query->find() in VideoController.php line 51
  5. at VideoController->category_id(null) in VideoController.php line 1805
  6. at VideoController->more3()
  7. at ReflectionMethod->invokeArgs(object(VideoController), []) in App.php line 197
  8. at App::invokeMethod([object(VideoController), 'more3'], []) in App.php line 414
  9. at App::module(['jiangzi', 'video', 'more3'], ['app_host' => '127.0.0.1', 'app_debug' => '1', 'app_trace' => '', ...], false) in App.php line 296
  10. at App::exec(['type' => 'module', 'module' => ['jiangzi', 'video', 'more3'], 'convert' => false], ['app_host' => '127.0.0.1', 'app_debug' => '1', 'app_trace' => '', ...]) in App.php line 124
  11. at App::run() in start.php line 18
  12. at require('/data/htdocs/jiangzi...') in index.php line 7

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 ') LIMIT 1' 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 ') LIMIT 1' at line 1
Error SQL SELECT `id`,`catalog`,`parent_id` FROM `cmf_column` WHERE ( id = ) LIMIT 1
Database Config
type mysql
hostname 10.0.0.55
database db_jiangzi_video
hostport 3306
dsn
params []
charset utf8mb4
prefix cmf_
debug false
deploy 0
rw_separate false
master_num 1
slave_no
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 REMSY6KN8T99FZIgMW

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_HTTP_YISU_DDOS_REAL_IP
3.239.119.159
HTTP_X_URL_SCHEME
https
HTTP_X_FORWARDED_SCHEME
https
HTTP_X_FORWARDED_HOST
m.jiangzi.com
HTTP_CONNECTION
close
HTTP_X_FORWARDED_PROTO
https
HTTP_X_FORWARDED_FOR
3.239.119.159, 110.42.6.10
HTTP_X_REAL_IP
110.42.6.10
HTTP_HOST
m.jiangzi.com
PATH_INFO
/more3/51621.html
REDIRECT_STATUS
200
SERVER_NAME
m.jiangzi.com
SERVER_PORT
443
SERVER_ADDR
10.0.0.57
REMOTE_PORT
44216
REMOTE_ADDR
10.0.0.136
SERVER_SOFTWARE
nginx/1.22.1
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/1.0
DOCUMENT_ROOT
/data/htdocs/jiangzi/m.jiangzi.com
DOCUMENT_URI
/index.php
REQUEST_URI
/more3/51621.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/more3/51621.html
SCRIPT_FILENAME
/data/htdocs/jiangzi/m.jiangzi.com/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711649468.6637
REQUEST_TIME
1711649468
Environment Variables
empty

ThinkPHP Constants

APP_DEBUG
false
APP_PATH
/data/htdocs/jiangzi/m.jiangzi.com/app/
THINK_VERSION
5.0.11
THINK_START_TIME
1711649468.6643
THINK_START_MEM
374152
EXT
.php
DS
/
THINK_PATH
/data/htdocs/jiangzi/m.jiangzi.com/thinkphp/
LIB_PATH
/data/htdocs/jiangzi/m.jiangzi.com/thinkphp/library/
CORE_PATH
/data/htdocs/jiangzi/m.jiangzi.com/thinkphp/library/think/
TRAIT_PATH
/data/htdocs/jiangzi/m.jiangzi.com/thinkphp/library/traits/
ROOT_PATH
/data/htdocs/jiangzi/m.jiangzi.com/
EXTEND_PATH
/data/htdocs/jiangzi/m.jiangzi.com/extend/
VENDOR_PATH
/data/htdocs/jiangzi/m.jiangzi.com/vendor/
RUNTIME_PATH
/data/htdocs/jiangzi/m.jiangzi.com/runtime/
LOG_PATH
/data/htdocs/jiangzi/m.jiangzi.com/runtime/log/
CACHE_PATH
/data/htdocs/jiangzi/m.jiangzi.com/runtime/cache/
TEMP_PATH
/data/htdocs/jiangzi/m.jiangzi.com/runtime/temp/
CONF_PATH
/data/htdocs/jiangzi/m.jiangzi.com/app/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false