[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 '= 1' 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 `fcw_b...', [], false, false) in Query.php line 255
  3. at Query->query('SELECT * FROM `fcw_b...', [], false, false) in Query.php line 2523
  4. at Query->select() in FilterSearchV2.php line 660
  5. at FilterSearchV2->getBusinesszone('') in FilterSearchV2.php line 169
  6. at FilterSearchV2->filter() in PropertyV2.php line 184
  7. at PropertyV2->filter()
  8. at ReflectionMethod->invokeArgs(object(PropertyV2), []) in App.php line 343
  9. at App::invokeMethod([object(PropertyV2), 'filter'], []) in App.php line 611
  10. at App::module(['index', 'propertyV2', 'filter'], ['app_host' => '', 'app_debug' => '1', 'app_trace' => '', ...], false) in App.php line 456
  11. at App::exec(['type' => 'module', 'module' => ['index', 'propertyV2', 'filter'], 'convert' => false], ['app_host' => '', 'app_debug' => '1', 'app_trace' => '', ...]) in App.php line 139
  12. at App::run() in start.php line 19
  13. at require('/www/wwwroot/xiangzu...') in index.php line 25

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 '= 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 '= 1' at line 1
Error SQL SELECT * FROM `fcw_business_zone` WHERE = 1
Database Config
type mysql
hostname rm-uf61btl93c9wcwhe4.mysql.rds.aliyuncs.com
database fangchan
hostport 3306
dsn
params []
charset utf8
prefix fcw_
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 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

USER
www
HOME
/home/www
HTTP_X_ALICDN_DA_VIA
61.160.192.96,180.163.51.254
HTTP_ALI_CDN_ADAPTIVE_PORTS
443,443
HTTP_ALI_SWIFT_ORIGIN_PORT
443
HTTP_ALI_SWIFT_ORIGIN_SCHEME
https
HTTP_ALI_SWIFT_WILDCARD_DNS
all.xiangzuwang.cn
HTTP_ALI_CDN_APPVIEW_NAME
cdn-tengine
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_ALI_SWIFT_FORCE_TTL_CODE
400=0
HTTP_X_CLIENT_SCHEME
https
HTTP_X_FORWARDED_FOR
44.204.34.64
HTTP_ALI_SWIFT_STAT_HOST
all.xiangzuwang.cn
HTTP_ALI_SWIFT_LOG_HOST
www.xiangzuwang.cn
HTTP_ALI_CDN_REAL_IP
44.204.34.64
HTTP_ALI_CDN_REAL_PORT
41378
HTTP_EAGLEEYE_TRACEID
3da0c00b17116541514486199e
HTTP_VIA
cn6425.l1, l2et2-2.l2
HTTP_HOST
www.xiangzuwang.cn
PATH_INFO
/bangonglou/sx/a-b170
REDIRECT_STATUS
200
SERVER_NAME
www.xiangzuwang.cn
SERVER_PORT
443
SERVER_ADDR
172.19.173.212
REMOTE_PORT
23068
REMOTE_ADDR
101.132.57.173
SERVER_SOFTWARE
nginx/1.17.5
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/xiangzu.b1byou.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/bangonglou/sx/a-b170
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/bangonglou/sx/a-b170
SCRIPT_FILENAME
/www/wwwroot/xiangzu.b1byou.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711654151.4577
REQUEST_TIME
1711654151
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/xiangzu.b1byou.com/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711654151.4585
THINK_START_MEM
385320
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/xiangzu.b1byou.com/thinkphp/
LIB_PATH
/www/wwwroot/xiangzu.b1byou.com/thinkphp/library/
CORE_PATH
/www/wwwroot/xiangzu.b1byou.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/xiangzu.b1byou.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/xiangzu.b1byou.com/
EXTEND_PATH
/www/wwwroot/xiangzu.b1byou.com/extend/
VENDOR_PATH
/www/wwwroot/xiangzu.b1byou.com/vendor/
RUNTIME_PATH
/www/wwwroot/xiangzu.b1byou.com/runtime/
LOG_PATH
/www/wwwroot/xiangzu.b1byou.com/runtime/log/
CACHE_PATH
/www/wwwroot/xiangzu.b1byou.com/runtime/cache/
TEMP_PATH
/www/wwwroot/xiangzu.b1byou.com/runtime/temp/
CONF_PATH
/www/wwwroot/xiangzu.b1byou.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/www/wwwroot/xiangzu.b1byou.com/addons/