[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 '.shtml ) ORDER BY id desc 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 * FROM `my_ne...', [], false, false) in Query.php line 227
  3. at Query->query('SELECT * FROM `my_ne...', [], false, false) in Query.php line 2501
  4. at Query->find() in News.php line 78
  5. at News->info()
  6. at ReflectionMethod->invokeArgs(object(News), []) in App.php line 224
  7. at App::invokeMethod([object(News), 'info'], []) in App.php line 390
  8. at App::module(['home', 'News', 'info'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 130
  9. at App::run() in start.php line 18
  10. at require('D:\1\v8095844\wwwroo...') in index.php line 19

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 '.shtml ) ORDER BY id desc 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 '.shtml ) ORDER BY id desc LIMIT 1' at line 1
Error SQL SELECT * FROM `my_news` WHERE ( id= httpwww.huaannews.comsystem20211130030396471.shtml ) ORDER BY id desc LIMIT 1
Database Config
type mysql
hostname 127.0.0.1
database db8095845
hostport
dsn
params []
charset utf8
prefix my_
debug true
deploy 0
rw_separate false
master_num 1
slave_no
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
auto_datetime_format false

Environment Variables

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

Server/Request Data

_FCGI_X_PIPE_
\\.\pipe\IISFCGI-4d474a81-d162-4c53-9d41-c92b112c1de1
ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG
C:\inetpub\temp\apppools\v8095844\v8095844.config
APP_POOL_ID
v8095844
CommonProgramFiles
C:\Program Files\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
O20210902094454
ComSpec
C:\Windows\system32\cmd.exe
DriverData
C:\Windows\System32\Drivers\DriverData
LOCALAPPDATA
C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS
4
OS
Windows_NT
Path
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;D:\Program Files\MySQL\MySQL Server 5.5\bin;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 63 Stepping 2, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
3f02
ProgramData
C:\ProgramData
ProgramFiles
C:\Program Files
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
O20210902094454$
USERPROFILE
C:\Windows\system32\config\systemprofile
windir
C:\Windows
__PSLockdownPolicy
4
ORIG_PATH_INFO
/index.php/newsinfo/httpwww.huaannews.comsystem20211130030396471.shtml
URL
/index.php
SERVER_SOFTWARE
Microsoft-IIS/10.0
SERVER_PROTOCOL
HTTP/1.1
SERVER_PORT_SECURE
0
SERVER_PORT
80
SERVER_NAME
fjtx.org
SCRIPT_NAME
/index.php
SCRIPT_FILENAME
d:\1\v8095844\wwwroot\index.php
REQUEST_URI
/newsinfo/httpwww.huaannews.comsystem20211130030396471.shtml
REQUEST_METHOD
GET
REMOTE_USER
REMOTE_PORT
37932
REMOTE_HOST
18.207.126.53
REMOTE_ADDR
18.207.126.53
QUERY_STRING
PATH_TRANSLATED
d:\1\v8095844\wwwroot\index.php\newsinfo\httpwww.huaannews.comsystem20211130030396471.shtml
PATH_INFO
/newsinfo/httpwww.huaannews.comsystem20211130030396471.shtml
LOGON_USER
LOCAL_ADDR
103.45.249.170
INSTANCE_META_PATH
/LM/W3SVC/73
INSTANCE_NAME
V8095844
INSTANCE_ID
73
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS
off
GATEWAY_INTERFACE
CGI/1.1
DOCUMENT_ROOT
d:\1\v8095844\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:\1\v8095844\wwwroot\
APPL_MD_PATH
/LM/W3SVC/73/ROOT
IIS_UrlRewriteModule
7,1,1993,2336
HTTP_X_ORIGINAL_URL
/newsinfo/httpwww.huaannews.comsystem20211130030396471.shtml
HTTP_USER_AGENT
claudebot
HTTP_HOST
fjtx.org
HTTP_ACCEPT
*/*
HTTP_CONTENT_LENGTH
0
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/newsinfo/httpwww.huaannews.comsystem20211130030396471.shtml
REQUEST_TIME_FLOAT
1711696805.9519
REQUEST_TIME
1711696805
Environment Variables
empty

ThinkPHP Constants

APP_PATH
D:\1\v8095844\wwwroot/application/
THINK_VERSION
5.0.12
THINK_START_TIME
1711696805.9536
THINK_START_MEM
269216
EXT
.php
DS
\
THINK_PATH
D:\1\v8095844\wwwroot\thinkphp\
LIB_PATH
D:\1\v8095844\wwwroot\thinkphp\library\
CORE_PATH
D:\1\v8095844\wwwroot\thinkphp\library\think\
TRAIT_PATH
D:\1\v8095844\wwwroot\thinkphp\library\traits\
ROOT_PATH
D:\1\v8095844\wwwroot\
EXTEND_PATH
D:\1\v8095844\wwwroot\extend\
VENDOR_PATH
D:\1\v8095844\wwwroot\vendor\
RUNTIME_PATH
D:\1\v8095844\wwwroot\runtime\
LOG_PATH
D:\1\v8095844\wwwroot\runtime\log\
CACHE_PATH
D:\1\v8095844\wwwroot\runtime\cache\
TEMP_PATH
D:\1\v8095844\wwwroot\runtime\temp\
CONF_PATH
D:\1\v8095844\wwwroot/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true
QINIU_FUNCTIONS_VERSION
7.2.2
DM
http://www.fjtx.org