[10501] PDOException in Connection.php line 687

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') LIMIT 1' 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 687
  2. at Connection->query('SELECT * FROM `proje...', [], false, false) in Connection.php line 844
  3. at Connection->find(object(Query)) in Query.php line 3121
  4. at Query->find() in Project.php line 16
  5. at Project->index()
  6. at ReflectionMethod->invokeArgs(object(Project), []) in Container.php line 395
  7. at Container->invokeReflectMethod(object(Project), object(ReflectionMethod), ['/project/50_Science_Park_Retail_Innocell' => '', 'id' => '50_Science_Park_Reta...', 'convert' => false]) in Module.php line 135
  8. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  9. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  10. at Middleware->think\{closure}(object(Request))
  11. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  12. at Middleware->dispatch(object(Request), 'controller') in Module.php line 140
  13. at Module->exec() in Dispatch.php line 168
  14. at Dispatch->run() in App.php line 432
  15. at App->think\{closure}(object(Request), object(Closure), null)
  16. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  17. at Middleware->think\{closure}(object(Request))
  18. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  19. at Middleware->dispatch(object(Request)) in App.php line 435
  20. at App->run() in index.php line 22

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 MariaDB server version for the right syntax to use near ') 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 MariaDB server version for the right syntax to use near ') LIMIT 1' at line 1
Error SQL SELECT * FROM `project_type_fields` WHERE ( id= ) LIMIT 1
Database Config
type mysql
hostname localhost
database luxeconcep_pp
hostport
dsn
params []
charset utf8
prefix
debug false
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
fields_strict false
resultset_type array
auto_timestamp false
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
/project/50_Science_Park_Retail_Innocell
POST Dataempty
Filesempty
Cookiesempty
Session
think { "lang": "en-us", "lang_field": "_en_us", "token": "bfbdf8f28241a1029e97e95676d8d98cf90cc3e4df0c96679eaa5fa3f615b5fd" }
Server/Request Data
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
PP_CUSTOM_PHP_INI /var/www/vhosts/system/pacificplan.com/etc/php.ini
PP_CUSTOM_PHP_CGI_INDEX 6c00f0f0cd692a882e599486dff4e805408cd9cb
SCRIPT_NAME /index.php
REQUEST_URI /project/50_Science_Park_Retail_Innocell
QUERY_STRING /project/50_Science_Park_Retail_Innocell
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.0
GATEWAY_INTERFACE CGI/1.1
REDIRECT_QUERY_STRING /project/50_Science_Park_Retail_Innocell
REDIRECT_URL /project/50_Science_Park_Retail_Innocell
REMOTE_PORT 49208
SCRIPT_FILENAME /var/www/vhosts/pacificplan.com/httpdocs/index.php
SERVER_ADMIN [no address given]
CONTEXT_DOCUMENT_ROOT /var/www/vhosts/pacificplan.com/httpdocs
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT /var/www/vhosts/pacificplan.com/httpdocs
REMOTE_ADDR 34.203.242.200
SERVER_PORT 80
SERVER_ADDR 103.19.27.56
SERVER_NAME pacificplan.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE <address>Apache Server at pacificplan.com Port 80</address>
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_CONNECTION close
HTTP_X_ACCEL_INTERNAL /internal-nginx-static-location
HTTP_X_REAL_IP 34.203.242.200
HTTP_HOST pacificplan.com
SCRIPT_URI http://pacificplan.com/project/50_Science_Park_Retail_Innocell
SCRIPT_URL /project/50_Science_Park_Retail_Innocell
UNIQUE_ID ZgXn49bUrPQ-4jzyBpL7HgAAAFc
REDIRECT_STATUS 200
REDIRECT_SCRIPT_URI http://pacificplan.com/project/50_Science_Park_Retail_Innocell
REDIRECT_SCRIPT_URL /project/50_Science_Park_Retail_Innocell
REDIRECT_UNIQUE_ID ZgXn49bUrPQ-4jzyBpL7HgAAAFc
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711663075.407
REQUEST_TIME 1711663075
Environment Variablesempty
ThinkPHP Constantsempty