[365官网网址]-官方网站

[10501] PDOException in Connection.php line 702

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 '' at line 1

  1. $this->debug(false, '', $master);
  2. // 返回结果集
  3. return $this->getResult($pdo, $procedure);
  4. } catch (\PDOException $e) {
  5. if ($this->isBreak($e)) {
  6. return $this->close()->query($sql, $bind, $master, $pdo);
  7. }
  8. throw new PDOException($e, $this->config, $this->getLastsql());
  9. } catch (\Throwable $e) {
  10. if ($this->isBreak($e)) {
  11. return $this->close()->query($sql, $bind, $master, $pdo);
  12. }
  13. throw $e;
  14. } catch (\Exception $e) {
  15. if ($this->isBreak($e)) {
  16. return $this->close()->query($sql, $bind, $master, $pdo);

Call Stack

  1. in Connection.php line 702
  2. at Connection->query('SELECT * FROM `T_ima...', [], false, false) in Connection.php line 945
  3. at Connection->select(object(Query)) in Query.php line 2741
  4. at Query->select() in Index.php line 451
  5. at Index->lst('住宅项目')
  6. at ReflectionMethod->invokeArgs(object(Index), ['住宅项目']) in Container.php line 299
  7. at Container->invokeReflectMethod(object(Index), object(ReflectionMethod), ['name' => '住宅项目']) in Module.php line 148
  8. at Module->run() in Url.php line 31
  9. at Url->run() in App.php line 405
  10. at App->think\{closure}(object(Request), object(Closure), null)
  11. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 119
  12. at Middleware->think\{closure}(object(Request))
  13. at call_user_func(object(Closure), object(Request)) in Middleware.php line 74
  14. at Middleware->dispatch(object(Request)) in App.php line 426
  15. at App->run() in index.php line 7

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 '' 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 '' at line 1
Error SQL SELECT * FROM `T_imagetext_cl` WHERE `parent_id` =
Database Config
type mysql
hostname localhost
database yuhaowuye_cn
hostport 3306
dsn
params []
charset utf8
prefix
debug true
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
fields_strict true
resultset_type array
auto_timestamp datetime
datetime_format Y-m-d H:i:s
sql_explain false
builder
query \think\db\Query
break_reconnect true
break_match_str []

Environment Variables

GET Data
name 住宅项目
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
_FCGI_X_PIPE_ \\.\pipe\IISFCGI-bf1a5f28-62b2-449b-ac6d-606649d3b55c
PHPRC D:\SOFT_PHP_PACKAGE\php5.6
PHP_FCGI_MAX_REQUESTS 10000
ALLUSERSPROFILE C:\ProgramData
APPDATA C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG C:\inetpub\temp\apppools\www.ahyhwy.cn\www.ahyhwy.cn.config
APP_POOL_ID www.ahyhwy.cn
CommonProgramFiles C:\Program Files (x86)\Common Files
CommonProgramFiles(x86) C:\Program Files (x86)\Common Files
CommonProgramW6432 C:\Program Files\Common Files
COMPUTERNAME S836248
ComSpec C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK NO
lib C:\Program Files\SQLXML 4.0\bin\
LOCALAPPDATA C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS 2
OS Windows_NT
Path D:\SOFT_PHP_PACKAGE\mysql5.6\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0";C:\Program Files (x86)\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE x86
PROCESSOR_ARCHITEW6432 AMD64
PROCESSOR_IDENTIFIER Intel64 Family 6 Model 45 Stepping 7, GenuineIntel
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 2d07
ProgramData C:\ProgramData
ProgramFiles C:\Program Files (x86)
ProgramFiles(x86) C:\Program Files (x86)
ProgramW6432 C:\Program Files
PSModulePath 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 S836248$
USERPROFILE C:\Windows\system32\config\systemprofile
windir C:\Windows
ORIG_PATH_INFO /index.php/index/index/lst
URL /index.php
SERVER_SOFTWARE Microsoft-IIS/7.5
SERVER_PROTOCOL HTTP/1.0
SERVER_PORT_SECURE 0
SERVER_PORT 80
SERVER_NAME www.ahyhwy.cn
SCRIPT_NAME /index.php
SCRIPT_FILENAME D:\website\www.ahyhwy.cn\www.ahyhwy.cn\public\index.php
REQUEST_URI /index.php/index/index/lst?name=%E4%BD%8F%E5%AE%85%E9%A1%B9%E7%9B%AE
REQUEST_METHOD GET
REMOTE_USER
REMOTE_PORT 55923
REMOTE_HOST 192.168.25.1
REMOTE_ADDR 192.168.25.1
QUERY_STRING name=%E4%BD%8F%E5%AE%85%E9%A1%B9%E7%9B%AE
PATH_TRANSLATED D:\website\www.ahyhwy.cn\www.ahyhwy.cn\public\index.php\index\index\lst
PATH_INFO /index/index/lst
LOGON_USER
LOCAL_ADDR 192.168.25.53
INSTANCE_META_PATH /LM/W3SVC/20
INSTANCE_NAME WWW.AHYHWY.CN
INSTANCE_ID 20
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS off
GATEWAY_INTERFACE CGI/1.1
DOCUMENT_ROOT D:\website\www.ahyhwy.cn\www.ahyhwy.cn\public
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:\website\www.ahyhwy.cn\www.ahyhwy.cn\public\
APPL_MD_PATH /LM/W3SVC/20/ROOT
HTTP_X_FORWARDED_FOR 173.245.77.66
HTTP_USER_AGENT Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
HTTP_HOST www.ahyhwy.cn
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_VIA 1.1 Ichengyun.Net (squid/3.0.STABLE26)
HTTP_CONNECTION keep-alive
HTTP_CACHE_CONTROL max-age=1800
FCGI_ROLE RESPONDER
PHP_SELF /index.php/index/index/lst
REQUEST_TIME_FLOAT 1627367501.7084
REQUEST_TIME 1627367501
Environment Variablesempty
ThinkPHP Constants
MD5_KEY WS
DOCUMENT_PATH D:/website/www.ahyhwy.cn/www.ahyhwy.cn/public
Baidu
sogou