欧宝平台下载app

[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 'and pid=277 )' 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 `app_a...', [], false, false) in Query.php line 255
  3. at Query->query('SELECT * FROM `app_a...', [], false, false) in Query.php line 2523
  4. at Query->select() in Page.php line 27
  5. at Page->index()
  6. at ReflectionMethod->invokeArgs(object(Page), []) in App.php line 343
  7. at App::invokeMethod([object(Page), 'index'], []) in App.php line 611
  8. at App::module(['index', 'Page', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 457
  9. at App::exec(['type' => 'module', 'module' => ['index', 'Page', 'index'], 'convert' => false], ['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('C:\wwwroot\dongwei_p...') 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 'and pid=277 )' 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 'and pid=277 )' at line 1
Error SQL SELECT * FROM `app_attachment` WHERE ( status=1 and mid= and pid=277 )
Database Config
type mysql
hostname 127.0.0.1
database mydongwei
hostport 3306
dsn
params []
charset utf8
prefix app_
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 true
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

PHPSESSID
qd295bgsiv5vgudapl5ajqm9t4

Session

think
{ "hs": 1 }

Server/Request Data

_FCGI_X_PIPE_
\\.\pipe\IISFCGI-60b23cd8-653b-4a60-b05d-16df639271ac
PHP_FCGI_MAX_REQUESTS
1000000
ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG
C:\inetpub\temp\apppools\dongwei\dongwei.config
APP_POOL_ID
dongwei
CommonProgramFiles
C:\Program Files (x86)\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
iZtae30suy7z95Z
ComSpec
C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK
NO
LOCALAPPDATA
C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS
2
OS
Windows_NT
Path
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft\Web Platform Installer\;
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 7, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
5507
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
iZtae30suy7z95Z$
USERPROFILE
C:\Windows\system32\config\systemprofile
windir
C:\Windows
ORIG_PATH_INFO
/index.php/page/139/277.html
URL
/index.php
SERVER_SOFTWARE
Microsoft-IIS/8.5
SERVER_PROTOCOL
HTTP/1.1
SERVER_PORT_SECURE
0
SERVER_PORT
80
SERVER_NAME
www.ksdwgroup.com
SCRIPT_NAME
/index.php
SCRIPT_FILENAME
C:\wwwroot\dongwei_ptda8f\web\index.php
REQUEST_URI
/page/139/277.html
REQUEST_METHOD
GET
REMOTE_USER
REMOTE_PORT
46754
REMOTE_HOST
107.158.225.150
REMOTE_ADDR
107.158.225.150
QUERY_STRING
PATH_TRANSLATED
C:\wwwroot\dongwei_ptda8f\web\index.php\page\139\277.html
PATH_INFO
/page/139/277.html
LOGON_USER
LOCAL_ADDR
172.19.143.136
INSTANCE_META_PATH
/LM/W3SVC/6003
INSTANCE_NAME
INSTANCE_ID
6003
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS
off
GATEWAY_INTERFACE
CGI/1.1
DOCUMENT_ROOT
C:\wwwroot\dongwei_ptda8f\web
CONTENT_TYPE
CONTENT_LENGTH
0
CERT_SUBJECT
CERT_SERIALNUMBER
CERT_ISSUER
CERT_FLAGS
CERT_COOKIE
AUTH_USER
AUTH_PASSWORD
AUTH_TYPE
APPL_PHYSICAL_PATH
C:\wwwroot\dongwei_ptda8f\web\
APPL_MD_PATH
/LM/W3SVC/6003/ROOT
IIS_UrlRewriteModule
7,1,1993,2336
UNENCODED_URL
/page/139/277.html
IIS_WasUrlRewritten
1
HTTP_X_ORIGINAL_URL
/page/139/277.html
HTTP_USER_AGENT
Mozilla/5.0 (compatible; Adsbot/3.1; +https://seostar.co/robot/)
HTTP_HOST
www.ksdwgroup.com
HTTP_COOKIE
PHPSESSID=qd295bgsiv5vgudapl5ajqm9t4
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_CONTENT_LENGTH
0
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/page/139/277.html
REQUEST_TIME_FLOAT
1660646823.9048
REQUEST_TIME
1660646823
Environment Variables
empty

ThinkPHP Constants

APP_PATH
C:\wwwroot\dongwei_ptda8f\web/application/
WXPAY_PATH
C:\wwwroot\dongwei_ptda8f\web/vendor
THINK_VERSION
5.0.24
THINK_START_TIME
1660646823.9061
THINK_START_MEM
153048
EXT
.php
DS
\
THINK_PATH
C:\wwwroot\dongwei_ptda8f\web\thinkphp\
LIB_PATH
C:\wwwroot\dongwei_ptda8f\web\thinkphp\library\
CORE_PATH
C:\wwwroot\dongwei_ptda8f\web\thinkphp\library\think\
TRAIT_PATH
C:\wwwroot\dongwei_ptda8f\web\thinkphp\library\traits\
ROOT_PATH
C:\wwwroot\dongwei_ptda8f\web\
EXTEND_PATH
C:\wwwroot\dongwei_ptda8f\web\extend\
VENDOR_PATH
C:\wwwroot\dongwei_ptda8f\web\vendor\
RUNTIME_PATH
C:\wwwroot\dongwei_ptda8f\web\runtime\
LOG_PATH
C:\wwwroot\dongwei_ptda8f\web\runtime\log\
CACHE_PATH
C:\wwwroot\dongwei_ptda8f\web\runtime\cache\
TEMP_PATH
C:\wwwroot\dongwei_ptda8f\web\runtime\temp\
CONF_PATH
C:\wwwroot\dongwei_ptda8f\web/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true