[10501] PDOException in Connection.php line 390

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 ') ORDER BY `id` ASC' 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 390
  2. at Connection->query('SELECT * FROM `clien...', [], false, false) in Query.php line 248
  3. at Query->query('SELECT * FROM `clien...', [], false, false) in Query.php line 2476
  4. at Query->select() in Form.php line 92
  5. at Form->_initialize() in Controller.php line 59
  6. at Controller->__construct(object(Request))
  7. at ReflectionClass->newInstanceArgs([object(Request)]) in App.php line 359
  8. at App::invokeClass('app\home\controller\...') in Loader.php line 479
  9. at Loader::controller('form', 'controller', false, 'Error') in App.php line 579
  10. at App::module(['home', 'form', 'column'], ['app_host' => '', 'app_debug' => false, 'app_trace' => false, ...], false) in App.php line 456
  11. at App::exec(['type' => 'module', 'module' => ['home', 'form', 'column'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  12. at App::run() in start.php line 19
  13. at require('/home/zpqgixzyhjk1/p...') in index.php line 18

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 ') ORDER BY `id` ASC' 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 ') ORDER BY `id` ASC' at line 1
Error SQL SELECT * FROM `client_productdescription` WHERE ( pro_id = ) ORDER BY `id` ASC
Database Config
type mysql
hostname localhost
database www_rooemed_com
hostport 3306
dsn
params []
charset utf8
prefix client_
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 Y-m-d H:i:s
sql_explain false
builder
query \think\db\Query
break_reconnect false

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

think_var
en-us
ipInfo
a:5:{s:2:"id";i:648;s:8:"ip_start";s:8:"51118080";s:6:"ip_end";s:8:"57147391";s:12:"abbreviation";s:2:"US";s:7:"country";s:13:"United States";}

Session

think_vars
en-us

Server/Request Data

LSPHP_ENABLE_USER_INI
on
PATH
/usr/local/bin:/usr/bin:/bin
TEMP
/tmp
TMP
/tmp
TMPDIR
/tmp
PWD
/
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
gzip, br
HTTP_CONNECTION
Keep-Alive
CONTENT_LENGTH
0
HTTP_HOST
rooemed.com
HTTP_USER_AGENT
claudebot
HTTP_X_FORWARDED_FOR
3.93.173.205
HTTP_CF_RAY
866ab66c7f7f3980-IAD
HTTP_X_FORWARDED_PROTO
https
HTTP_CF_VISITOR
{"scheme":"https"}
HTTP_CF_CONNECTING_IP
3.93.173.205
HTTP_CDN_LOOP
cloudflare
HTTP_CF_IPCOUNTRY
US
REDIRECT_UNIQUE_ID
ZfkUSTPA9elETG9gxtke-AAAAEs
REDIRECT_SCRIPT_URL
/products/obgyn/gynecology-chair/as105a-medical-adjustable-gynecology-examination-chair-examination-table-obstetric-bed/
REDIRECT_SCRIPT_URI
http://rooemed.com/products/obgyn/gynecology-chair/as105a-medical-adjustable-gynecology-examination-chair-examination-table-obstetric-bed/
REDIRECT_USER_ID
6064037
REDIRECT_STATUS
200
UNIQUE_ID
ZfkUSTPA9elETG9gxtke-AAAAEs
SCRIPT_URL
/products/obgyn/gynecology-chair/as105a-medical-adjustable-gynecology-examination-chair-examination-table-obstetric-bed/
SCRIPT_URI
http://rooemed.com/products/obgyn/gynecology-chair/as105a-medical-adjustable-gynecology-examination-chair-examination-table-obstetric-bed/
USER_ID
6064037
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
SERVER_NAME
rooemed.com
SERVER_ADDR
107.180.21.54
SERVER_PORT
80
REMOTE_ADDR
172.70.38.232
DOCUMENT_ROOT
/home/zpqgixzyhjk1/public_html/rooemed.com
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
/home/zpqgixzyhjk1/public_html/rooemed.com
SERVER_ADMIN
SCRIPT_FILENAME
/home/zpqgixzyhjk1/public_html/rooemed.com/index.php
REMOTE_PORT
57840
REDIRECT_URL
/products/obgyn/gynecology-chair/as105a-medical-adjustable-gynecology-examination-chair-examination-table-obstetric-bed/
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
REQUEST_URI
/products/obgyn/gynecology-chair/as105a-medical-adjustable-gynecology-examination-chair-examination-table-obstetric-bed/
SCRIPT_NAME
/index.php
PATH_INFO
/products/obgyn/gynecology-chair/as105a-medical-adjustable-gynecology-examination-chair-examination-table-obstetric-bed/
PATH_TRANSLATED
redirect:/index.php/products/obgyn/gynecology-chair/as105a-medical-adjustable-gynecology-examination-chair-examination-table-obstetric-bed//obgyn/gynecology-chair/as105a-medical-adjustable-gynecology-examination-chair-examination-table-obstetric-bed/
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1710822473.7001
REQUEST_TIME
1710822473

Environment Variables

LSPHP_ENABLE_USER_INI
on
PATH
/usr/local/bin:/usr/bin:/bin
TEMP
/tmp
TMP
/tmp
TMPDIR
/tmp
PWD
/

ThinkPHP Constants

APP_PATH
/home/zpqgixzyhjk1/public_html/rooemed.com/application/
APP_DEBUG
true
THINK_VERSION
5.0.21
THINK_START_TIME
1710822473.7009
THINK_START_MEM
364472
EXT
.php
DS
/
THINK_PATH
/home/zpqgixzyhjk1/public_html/rooemed.com/thinkphp/
LIB_PATH
/home/zpqgixzyhjk1/public_html/rooemed.com/thinkphp/library/
CORE_PATH
/home/zpqgixzyhjk1/public_html/rooemed.com/thinkphp/library/think/
TRAIT_PATH
/home/zpqgixzyhjk1/public_html/rooemed.com/thinkphp/library/traits/
ROOT_PATH
/home/zpqgixzyhjk1/public_html/rooemed.com/
EXTEND_PATH
/home/zpqgixzyhjk1/public_html/rooemed.com/extend/
VENDOR_PATH
/home/zpqgixzyhjk1/public_html/rooemed.com/vendor/
RUNTIME_PATH
/home/zpqgixzyhjk1/public_html/rooemed.com/runtime/
LOG_PATH
/home/zpqgixzyhjk1/public_html/rooemed.com/runtime/log/
CACHE_PATH
/home/zpqgixzyhjk1/public_html/rooemed.com/runtime/cache/
TEMP_PATH
/home/zpqgixzyhjk1/public_html/rooemed.com/runtime/temp/
CONF_PATH
/home/zpqgixzyhjk1/public_html/rooemed.com/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false