9728太阳集团

[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 MySQL 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 Product.php line 160
  5. at Product->detail()
  6. at ReflectionMethod->invokeArgs(object(Product), []) in App.php line 343
  7. at App::invokeMethod([object(Product), 'detail'], []) in App.php line 610
  8. at App::module(['home', 'Product', 'detail'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  9. at App::exec(['type' => 'module', 'module' => ['home', 'Product', 'detail']], ['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('/www/wwwroot/www.gim...') 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 MySQL 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 MySQL 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 127.0.0.1
database www_gimech_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
PHPSESSID
j3jmferm6pi53auru55a307lg3
ipInfo
a:5:{s:2:"id";i:8741;s:8:"ip_start";s:9:"400916480";s:6:"ip_end";s:9:"401113087";s:12:"abbreviation";s:2:"US";s:7:"country";s:13:"United States";}
think_var1
en-us
first
1773386731
Session
empty

Server/Request Data

USER
www
HOME
/home/www
SCRIPT_NAME
/index.php
REQUEST_URI
/product/index.html
QUERY_STRING
s=/home/Product/detail/name/index
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_QUERY_STRING
s=/home/Product/detail/name/index
REDIRECT_URL
/index.php/product/index.html
REMOTE_PORT
38424
SCRIPT_FILENAME
/www/wwwroot/www.gimech.com/index.php
SERVER_ADMIN
webmaster@example.com
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/www.gimech.com/
CONTEXT_PREFIX
REQUEST_SCHEME
https
DOCUMENT_ROOT
/www/wwwroot/www.gimech.com/
REMOTE_ADDR
23.231.76.26
SERVER_PORT
443
SERVER_ADDR
172.19.168.8
SERVER_NAME
www.gimech.com
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
Apache Server at www.gimech.com Port 443
LD_LIBRARY_PATH
/www/server/apache/lib
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_COOKIE
think_var=en-us; PHPSESSID=j3jmferm6pi53auru55a307lg3; ipInfo=a%3A5%3A%7Bs%3A2%3A%22id%22%3Bi%3A8741%3Bs%3A8%3A%22ip_start%22%3Bs%3A9%3A%22400916480%22%3Bs%3A6%3A%22ip_end%22%3Bs%3A9%3A%22401113087%22%3Bs%3A12%3A%22abbreviation%22%3Bs%3A2%3A%22US%22%3Bs%3A7%3A%22country%22%3Bs%3A13%3A%22United+States%22%3B%7D; think_var1=en-us; first=1773386731
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.gimech.com
HTTP_USER_AGENT
Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
proxy-nokeepalive
1
SSL_TLS_SNI
www.gimech.com
HTTPS
on
SCRIPT_URI
/product/index.html
SCRIPT_URL
/product/index.html
REDIRECT_STATUS
200
REDIRECT_SSL_TLS_SNI
www.gimech.com
REDIRECT_HTTPS
on
REDIRECT_SCRIPT_URI
/product/index.html
REDIRECT_SCRIPT_URL
/product/index.html
REDIRECT_REDIRECT_STATUS
200
REDIRECT_REDIRECT_SSL_TLS_SNI
www.gimech.com
REDIRECT_REDIRECT_HTTPS
on
REDIRECT_REDIRECT_SCRIPT_URI
/product/index.html
REDIRECT_REDIRECT_SCRIPT_URL
/product/index.html
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1775738076.6704
REQUEST_TIME
1775738076
PATH_INFO
/home/Product/detail/name/index
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/www.gimech.com/application/
APP_DEBUG
true
THINK_VERSION
5.0.21
THINK_START_TIME
1775738076.6705
THINK_START_MEM
366000
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.gimech.com/thinkphp/
LIB_PATH
/www/wwwroot/www.gimech.com/thinkphp/library/
CORE_PATH
/www/wwwroot/www.gimech.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.gimech.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.gimech.com/
EXTEND_PATH
/www/wwwroot/www.gimech.com/extend/
VENDOR_PATH
/www/wwwroot/www.gimech.com/vendor/
RUNTIME_PATH
/www/wwwroot/www.gimech.com/runtime/
LOG_PATH
/www/wwwroot/www.gimech.com/runtime/log/
CACHE_PATH
/www/wwwroot/www.gimech.com/runtime/cache/
TEMP_PATH
/www/wwwroot/www.gimech.com/runtime/temp/
CONF_PATH
/www/wwwroot/www.gimech.com/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false