[10501] PDOException in Connection.php line 390

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, '', $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 390
  2. at Connection->query('SELECT * FROM `think...', [], false, false) in Query.php line 248
  3. at Query->query('SELECT * FROM `think...', [], false, false) in Query.php line 2639
  4. at Query->find() in Pro.php line 98
  5. at Pro->product_detail()
  6. at ReflectionMethod->invokeArgs(object(Pro), []) in App.php line 343
  7. at App::invokeMethod([object(Pro), 'product_detail'], []) in App.php line 606
  8. at App::module(['Index', 'Pro', 'product_detail'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 457
  9. at App::exec(['type' => 'module', 'module' => ['Index', 'Pro', 'product_detail']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  10. at App::run() in start.php line 19
  11. at require('/home/fc2c63a6-b614-...') in index.php line 20

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 * FROM `think_proclass` WHERE ( id = ) LIMIT 1
Database Config
type mysql
hostname mysql04.dbs.71e.com
database db_web503402_1
hostport
dsn
params []
charset utf8
prefix think_
debug true
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
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
44882?KVcNDCJ.html
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
web503402
HOME
/home/fc2c63a6-b614-4306-ae7e-16d62d368f3e
FCGI_ROLE
RESPONDER
HTTP_HOST
luozhitz.com
HTTP_X_FORWARDED_FOR
3.227.239.9, 192.168.0.175, 192.168.0.166
HTTP_CONNECTION
close
HTTP_X_REAL_IP
3.227.239.9
HTTP_X_FORWARDED_PROTO
http
HTTP_X_FORWARDED_HOST
luozhitz.com
HTTP_X_FORWARDED_PORT
80
HTTP_X_FORWARDED_LBIP
192.168.0.169
HTTP_X_FORWARDED_CLIENT_PORT
41970
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_X_WAF_ENDLESS_LOOP
1
PATH
/sbin:/bin:/usr/sbin:/usr/bin
LD_LIBRARY_PATH
/usr/local/apache/lib
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache/2.4.9 (Unix) mod_fcgid/2.3.9
SERVER_NAME
luozhitz.com
SERVER_ADDR
127.0.0.1
SERVER_PORT
80
REMOTE_ADDR
127.0.0.1
DOCUMENT_ROOT
/home/fc2c63a6-b614-4306-ae7e-16d62d368f3e/wwwroot
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
/home/fc2c63a6-b614-4306-ae7e-16d62d368f3e/wwwroot
SERVER_ADMIN
you@example.com
SCRIPT_FILENAME
//home/fc2c63a6-b614-4306-ae7e-16d62d368f3e/wwwroot/index.php
REMOTE_PORT
40394
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.0
REQUEST_METHOD
GET
QUERY_STRING
id=44882?KVcNDCJ.html
REQUEST_URI
/index.php/Index/Pro/product_detail/yDn3=kpef.html?id=44882?KVcNDCJ.html
SCRIPT_NAME
/index.php
ORIG_SCRIPT_NAME
/index.php/Index/Pro/product_detail/yDn3=kpef.html
PATH_INFO
/Index/Pro/product_detail/yDn3=kpef.html
ORIG_SCRIPT_FILENAME
//home/fc2c63a6-b614-4306-ae7e-16d62d368f3e/wwwroot/index.php/Index/Pro/product_detail/yDn3=kpef.html
PATH_TRANSLATED
/home/fc2c63a6-b614-4306-ae7e-16d62d368f3e/wwwroot/Index/Pro/product_detail/yDn3=kpef.html
PHP_SELF
/index.php/Index/Pro/product_detail/yDn3=kpef.html
REQUEST_TIME_FLOAT
1711679916.1969
REQUEST_TIME
1711679916
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/home/fc2c63a6-b614-4306-ae7e-16d62d368f3e/wwwroot/application/
THINK_VERSION
5.0.20
THINK_START_TIME
1711679916.197
THINK_START_MEM
238344
EXT
.php
DS
/
THINK_PATH
/home/fc2c63a6-b614-4306-ae7e-16d62d368f3e/wwwroot/thinkphp/
LIB_PATH
/home/fc2c63a6-b614-4306-ae7e-16d62d368f3e/wwwroot/thinkphp/library/
CORE_PATH
/home/fc2c63a6-b614-4306-ae7e-16d62d368f3e/wwwroot/thinkphp/library/think/
TRAIT_PATH
/home/fc2c63a6-b614-4306-ae7e-16d62d368f3e/wwwroot/thinkphp/library/traits/
ROOT_PATH
/home/fc2c63a6-b614-4306-ae7e-16d62d368f3e/wwwroot/
EXTEND_PATH
/home/fc2c63a6-b614-4306-ae7e-16d62d368f3e/wwwroot/extend/
VENDOR_PATH
/home/fc2c63a6-b614-4306-ae7e-16d62d368f3e/wwwroot/vendor/
RUNTIME_PATH
/home/fc2c63a6-b614-4306-ae7e-16d62d368f3e/wwwroot/runtime/
LOG_PATH
/home/fc2c63a6-b614-4306-ae7e-16d62d368f3e/wwwroot/runtime/log/
CACHE_PATH
/home/fc2c63a6-b614-4306-ae7e-16d62d368f3e/wwwroot/runtime/cache/
TEMP_PATH
/home/fc2c63a6-b614-4306-ae7e-16d62d368f3e/wwwroot/runtime/temp/
CONF_PATH
/home/fc2c63a6-b614-4306-ae7e-16d62d368f3e/wwwroot/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
/
/
YMD
20240329
__PUBLIC__
/public