best·365体育官网平台-官方網站

#0 [10501]PDOException in PDOConnection.php line 797

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. }
  2. } else {
  3. if ($this->reConnectTimes < 4 && $this->isBreak($e)) {
  4. ++$this->reConnectTimes;
  5. return $this->close()->getPDOStatement($sql, $bind, $master, $procedure);
  6. }
  7. }
  8. if ($e instanceof \PDOException) {
  9. throw new PDOException($e, $this->config, $this->getLastsql());
  10. } else {
  11. throw $e;
  12. }
  13. }
  14. }
  15. /**
  16. * 执行语句
  17. * @access protected

Call Stack

  1. in PDOConnection.php line 797
  2. at PDOConnection->getPDOStatement() in PDOConnection.php line 710
  3. at PDOConnection->pdoQuery() in PDOConnection.php line 879
  4. at PDOConnection->find() in BaseQuery.php line 1162
  5. at BaseQuery->find() in BaseController.php line 118
  6. at BaseController->finds() in Product.php line 183
  7. at Product->show()
  8. at ReflectionMethod->invokeArgs() in Container.php line 343
  9. at Container->invokeReflectMethod() in Controller.php line 110
  10. at Controller->think\route\dispatch\{closure}() in Pipeline.php line 59
  11. at Pipeline->think\{closure}() in Pipeline.php line 66
  12. at Pipeline->then() in Controller.php line 113
  13. at Controller->exec() in Dispatch.php line 89
  14. at Dispatch->run() in Route.php line 772
  15. at Route->think\{closure}() in Pipeline.php line 59
  16. at Pipeline->think\{closure}() in Pipeline.php line 66
  17. at Pipeline->then() in Route.php line 773
  18. at Route->dispatch() in Http.php line 216
  19. at Http->dispatchToRoute() in Http.php line 206
  20. at Http->think\{closure}() in Pipeline.php line 59
  21. at Pipeline->think\{closure}() in MultiApp.php line 71
  22. at MultiApp->think\app\{closure}() in Pipeline.php line 59
  23. at Pipeline->think\{closure}() in Pipeline.php line 66
  24. at Pipeline->then() in MultiApp.php line 72
  25. at MultiApp->handle()
  26. at call_user_func() in Middleware.php line 142
  27. at Middleware->think\{closure}() in Pipeline.php line 85
  28. at Pipeline->think\{closure}() in SessionInit.php line 67
  29. at SessionInit->handle()
  30. at call_user_func() in Middleware.php line 142
  31. at Middleware->think\{closure}() in Pipeline.php line 85
  32. at Pipeline->think\{closure}() in TraceDebug.php line 71
  33. at TraceDebug->handle()
  34. at call_user_func() in Middleware.php line 142
  35. at Middleware->think\{closure}() in Pipeline.php line 85
  36. at Pipeline->think\{closure}() in Pipeline.php line 66
  37. at Pipeline->then() in Http.php line 207
  38. at Http->runWithRequest() in Http.php line 170
  39. at Http->run() in index.php line 28

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 `shop_typepro` WHERE ( id= ) LIMIT 1
Database Config
type mysql
hostname 127.0.0.1
database scauracndb
hostport 3306
dsn
params []
charset utf8
prefix shop_
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
fields_strict true
fields_cache false
trigger_sql 1
builder
query
break_reconnect false
break_match_str []

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
ADMIN_ID e899a0333cba9847f68d8088ba0a0c23e7ba62da
PHPSESSID bbee5c9fd206bbcbf0b6cb271a3da8d2
Session
__token__ 981d8e4a18a314817731b5b02bf4d028
user_id 0
Server/Request Data
USER www
HOME /home/www
HTTP_COOKIE ADMIN_ID=e899a0333cba9847f68d8088ba0a0c23e7ba62da; PHPSESSID=bbee5c9fd206bbcbf0b6cb271a3da8d2
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_HOST scaura.cn
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME scaura.cn
SERVER_PORT 80
SERVER_ADDR 119.147.152.65
REMOTE_PORT 55172
REMOTE_ADDR 107.158.232.98
SERVER_SOFTWARE nginx/1.18.0
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/scauracn/public
DOCUMENT_URI /index.php
REQUEST_URI //productshow4.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/productshow4.html
SCRIPT_FILENAME /www/wwwroot/scauracn/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1734786154.8493
REQUEST_TIME 1734786154