[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 ') ORDER BY `weigh` LIMIT 3' 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 * FROM `fa_ca...', [], false, false) in Query.php line 255
  3. at Query->query('SELECT * FROM `fa_ca...', [], false, false) in Query.php line 2523
  4. at Query->select() in Pub.php line 13
  5. at Pub->getPubByWhere('*', 'cases', 'team_design_id = ', '3', 'weigh') in Team.php line 76
  6. at Team->details('24')
  7. at ReflectionMethod->invokeArgs(object(Team), ['24']) in App.php line 343
  8. at App::invokeMethod([object(Team), 'details'], []) in App.php line 611
  9. at App::module(['index', 'team', 'details'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 457
  10. at App::exec(['type' => 'module', 'module' => ['index', 'team', 'details']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  11. at App::run() in start.php line 19
  12. at require('D:\wwwroot\sxhuashen...') in index.php line 24

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 ') ORDER BY `weigh` LIMIT 3' 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 ') ORDER BY `weigh` LIMIT 3' at line 1
Error SQL SELECT * FROM `fa_cases` WHERE ( team_design_id = ) ORDER BY `weigh` LIMIT 3
Database Config
type mysql
hostname 127.0.0.1
database sxhuasheng
hostport
dsn
params []
charset utf8mb4
prefix fa_
debug false
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 false
sql_explain false
builder
query \think\db\Query
break_reconnect false

Environment Variables

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

Server/Request Data

_FCGI_X_PIPE_
\\.\pipe\IISFCGI-6b289f13-bcce-413a-ac5c-f4a80e448ba9
PHP_FCGI_MAX_REQUESTS
1000
PHPRC
C:\php_56
ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG
C:\inetpub\temp\apppools\sxhuasheng\sxhuasheng.config
APP_POOL_ID
sxhuasheng
CommonProgramFiles
C:\Program Files (x86)\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
EBS-1034
ComSpec
C:\Windows\system32\cmd.exe
DriverData
C:\Windows\System32\Drivers\DriverData
LOCALAPPDATA
C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS
8
OS
Windows_NT
Path
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\php_52;D:\mysql\bin;c:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\dotnet\;C:\Program Files (x86)\dotnet\;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
x86
PROCESSOR_ARCHITEW6432
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 85 Stepping 4, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
5504
ProgramData
C:\ProgramData
ProgramFiles
C:\Program Files (x86)
ProgramFiles(x86)
C:\Program Files (x86)
ProgramW6432
C:\Program Files
PSModulePath
C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
PUBLIC
C:\Users\Public
SystemDrive
C:
SystemRoot
C:\Windows
TEMP
C:\Windows\TEMP
TMP
C:\Windows\TEMP
USERDOMAIN
WORKGROUP
USERNAME
EBS-1034$
USERPROFILE
C:\Windows\system32\config\systemprofile
windir
C:\Windows
ORIG_PATH_INFO
/public/index.php/index/team/details/id/24.html
URL
/public/index.php
SERVER_SOFTWARE
Microsoft-IIS/10.0
SERVER_PROTOCOL
HTTP/1.1
SERVER_PORT_SECURE
0
SERVER_PORT
80
SERVER_NAME
www.sxhszj.com
SCRIPT_NAME
/public/index.php
SCRIPT_FILENAME
D:\wwwroot\sxhuasheng\wwwroot\public\index.php
REQUEST_URI
/index/team/details/id/24.html
REQUEST_METHOD
GET
REMOTE_USER
REMOTE_PORT
63369
REMOTE_HOST
127.0.0.1
REMOTE_ADDR
127.0.0.1
QUERY_STRING
PATH_TRANSLATED
D:\wwwroot\sxhuasheng\wwwroot\public\index.php\index\team\details\id\24.html
PATH_INFO
/index/team/details/id/24.html
LOGON_USER
LOCAL_ADDR
127.0.0.1
INSTANCE_META_PATH
/LM/W3SVC/11176
INSTANCE_NAME
SXHUASHENG
INSTANCE_ID
11176
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS
off
GATEWAY_INTERFACE
CGI/1.1
DOCUMENT_ROOT
D:\wwwroot\sxhuasheng\wwwroot
CONTENT_TYPE
CONTENT_LENGTH
0
CERT_SUBJECT
CERT_SERIALNUMBER
CERT_ISSUER
CERT_FLAGS
CERT_COOKIE
AUTH_USER
AUTH_PASSWORD
AUTH_TYPE
APPL_PHYSICAL_PATH
D:\wwwroot\sxhuasheng\wwwroot\
APPL_MD_PATH
/LM/W3SVC/11176/ROOT
IIS_UrlRewriteModule
7,1,1993,2336
WEBSOCKET_VERSION
13
UNENCODED_URL
/index/team/details/id/24.html
IIS_WasUrlRewritten
1
HTTP_X_ORIGINAL_URL
/index/team/details/id/24.html
HTTP_X_REAL_IP
35.172.194.25
HTTP_X_FORWARDED_FOR
35.172.194.25
HTTP_USER_AGENT
claudebot
HTTP_HOST
www.sxhszj.com
HTTP_ACCEPT
*/*
HTTP_CONTENT_LENGTH
0
HTTP_CONNECTION
close
FCGI_ROLE
RESPONDER
PHP_SELF
/public/index.php/index/team/details/id/24.html
REQUEST_TIME_FLOAT
1711693154.4195
REQUEST_TIME
1711693154
Environment Variables
empty

ThinkPHP Constants

APP_PATH
D:\wwwroot\sxhuasheng\wwwroot\public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711693154.4211
THINK_START_MEM
137856
EXT
.php
DS
\
THINK_PATH
D:\wwwroot\sxhuasheng\wwwroot\thinkphp\
LIB_PATH
D:\wwwroot\sxhuasheng\wwwroot\thinkphp\library\
CORE_PATH
D:\wwwroot\sxhuasheng\wwwroot\thinkphp\library\think\
TRAIT_PATH
D:\wwwroot\sxhuasheng\wwwroot\thinkphp\library\traits\
ROOT_PATH
D:\wwwroot\sxhuasheng\wwwroot\
EXTEND_PATH
D:\wwwroot\sxhuasheng\wwwroot\extend\
VENDOR_PATH
D:\wwwroot\sxhuasheng\wwwroot\vendor\
RUNTIME_PATH
D:\wwwroot\sxhuasheng\wwwroot\runtime\
LOG_PATH
D:\wwwroot\sxhuasheng\wwwroot\runtime\log\
CACHE_PATH
D:\wwwroot\sxhuasheng\wwwroot\runtime\cache\
TEMP_PATH
D:\wwwroot\sxhuasheng\wwwroot\runtime\temp\
CONF_PATH
D:\wwwroot\sxhuasheng\wwwroot\public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true
PHP_INT_MIN
-2147483648
PHP_OS_FAMILY
Windows
ADDON_PATH
D:\wwwroot\sxhuasheng\wwwroot\addons\