错误语句:SELECT * FROM `tp_coupon` WHERE ( send_start_time <1711622744 AND send_end_time >1711622744 AND createnum > send_num AND type = 2 AND status = 1 AND store_id = )

[10501] PDOException in Connection.php line 391

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. // 调试结束
  2. $this->debug(false);
  3. // 返回结果集
  4. return $this->getResult($pdo, $procedure);
  5. } catch (\PDOException $e) {
  6. if ($this->isBreak($e)) {
  7. return $this->close()->query($sql, $bind, $master, $pdo);
  8. }
  9. echo '错误语句:'. $sql;
  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. echo '错误语句:'. $sql;
  16. throw $e;
  17. } catch (\Exception $e) {
  18. if ($this->isBreak($e)) {
  19. return $this->close()->query($sql, $bind, $master, $pdo);

Call Stack

  1. in Connection.php line 391
  2. at Connection->query('SELECT * FROM `tp_co...', [], false, false) in Query.php line 227
  3. at Query->query('SELECT * FROM `tp_co...', [], false, false) in Query.php line 2344
  4. at Query->select() in Store.php line 142
  5. at Store->index()
  6. at ReflectionMethod->invokeArgs(object(Store), []) in App.php line 346
  7. at App::invokeMethod([object(Store), 'index'], []) in App.php line 615
  8. at App::module(['Home', 'Store', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 459
  9. at App::exec(['type' => 'module', 'module' => ['Home', 'Store', 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 142
  10. at App::run() in start.php line 19
  11. at require('D:\WebSiteDirectory\...') in index.php line 65

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 `tp_coupon` WHERE ( send_start_time <1711622744 AND send_end_time >1711622744 AND createnum > send_num AND type = 2 AND status = 1 AND store_id = )
Database Config
type mysql
hostname 127.0.0.1
database aotao_v2
hostport 3306
dsn
params []
charset utf8
prefix tp_
debug true
deploy 0
rw_separate false
master_num 1
slave_no
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

id
190
POST Data
empty
Files
empty
Cookies
empty

Session

think
{ "currency": { "id": 15, "pjname": "1327", "currency_name": "\u6fb3\u95e8\u5143", "currency_sign": "MOP", "currency_shorter": "MOP", "is_show": 1, "default": 1 } }

Server/Request Data

PATH
C:\Program Files\Git\cmd;C:\Program Files\Java\jdk1.8.0_92\bin;C:\Program Files\Java\jdk1.8.0_92\jre\bin;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files\MySQL\v5.1\bin;C:\Program Files\TortoiseSVN\bin;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\system32;D:\PHPServer\v5.6;D:\Program Files\VisualSVN Server\bin;
SYSTEMROOT
C:\Windows
COMSPEC
C:\Windows\system32\cmd.exe
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
WINDIR
C:\Windows
PHPRC
D:/phpstudy_pro/Extensions/php/php7.0.9nts
_FCGI_SHUTDOWN_EVENT_
10064
HTTP_CONNECTION
close
SCRIPT_NAME
/index.php
REQUEST_URI
/Home/Store/index/id/190.html
QUERY_STRING
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_URL
/Home/Store/index/id/190.html
REMOTE_PORT
35062
SCRIPT_FILENAME
D:/WebSiteDirectory/fullway99/macau_store/index.php
SERVER_ADMIN
admin@example.com
CONTEXT_DOCUMENT_ROOT
D:/WebSiteDirectory/fullway99/macau_store
CONTEXT_PREFIX
REQUEST_SCHEME
https
DOCUMENT_ROOT
D:/WebSiteDirectory/fullway99/macau_store
REMOTE_ADDR
35.169.107.177
SERVER_PORT
443
SERVER_ADDR
172.18.97.183
SERVER_NAME
www.macau-store.com
SERVER_SOFTWARE
Apache/2.4.39 (Win64) OpenSSL/1.1.1b mod_fcgid/2.3.9a mod_log_rotate/1.02
SERVER_SIGNATURE
SystemRoot
C:\Windows
HTTP_HOST
www.macau-store.com
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
SSL_SESSION_RESUMED
Initial
SSL_SESSION_ID
4b315bd551fd58ccdb02ac62b4274a5e7907bcbe7c459971c73f8401da6911ea
SSL_SERVER_A_SIG
sha256WithRSAEncryption
SSL_SERVER_A_KEY
rsaEncryption
SSL_SERVER_I_DN
CN=Encryption Everywhere DV TLS CA - G2,OU=www.digicert.com,O=DigiCert Inc,C=US
SSL_SERVER_S_DN
CN=www.macau-store.com
SSL_SERVER_V_END
May 23 23:59:59 2024 GMT
SSL_SERVER_V_START
Feb 23 00:00:00 2024 GMT
SSL_SERVER_M_SERIAL
08F48846B4EF5402DB9CE6F092765416
SSL_SERVER_M_VERSION
3
SSL_CLIENT_VERIFY
NONE
SSL_CIPHER_ALGKEYSIZE
256
SSL_CIPHER_USEKEYSIZE
256
SSL_CIPHER_EXPORT
false
SSL_CIPHER
TLS_CHACHA20_POLY1305_SHA256
SSL_COMPRESS_METHOD
NULL
SSL_SECURE_RENEG
true
SSL_PROTOCOL
TLSv1.3
SSL_VERSION_LIBRARY
OpenSSL/1.1.1b
SSL_VERSION_INTERFACE
mod_ssl/2.4.39
SSL_SERVER_SAN_DNS_1
macau-store.com
SSL_SERVER_SAN_DNS_0
www.macau-store.com
SSL_SERVER_I_DN_CN
Encryption Everywhere DV TLS CA - G2
SSL_SERVER_I_DN_OU
www.digicert.com
SSL_SERVER_I_DN_O
DigiCert Inc
SSL_SERVER_I_DN_C
US
SSL_SERVER_S_DN_CN
www.macau-store.com
SSL_TLS_SNI
www.macau-store.com
HTTPS
on
REDIRECT_STATUS
200
REDIRECT_SSL_TLS_SNI
www.macau-store.com
REDIRECT_HTTPS
on
REDIRECT_PATH_INFO
Home/Store/index/id/190.html
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711622744.6703
REQUEST_TIME
1711622744
PATH_INFO
Home/Store/index/id/190.html
Environment Variables
empty

ThinkPHP Constants

PLUGIN_PATH
D:\WebSiteDirectory\fullway99\macau_store/plugins/
UPLOAD_PATH
public/upload/
TPSHOP_CACHE_TIME
31104000
SITE_URL
https://www.macau-store.com
INSTALL_DATE
1463741583
SERIALNUMBER
20160520065303oCWIoa
APP_PATH
D:\WebSiteDirectory\fullway99\macau_store/application/
NOW_TIME
1711622744
THINK_VERSION
5.0.15
THINK_START_TIME
1711622744.6715
THINK_START_MEM
408384
EXT
.php
DS
\
THINK_PATH
D:\WebSiteDirectory\fullway99\macau_store\thinkphp\
LIB_PATH
D:\WebSiteDirectory\fullway99\macau_store\thinkphp\library\
CORE_PATH
D:\WebSiteDirectory\fullway99\macau_store\thinkphp\library\think\
TRAIT_PATH
D:\WebSiteDirectory\fullway99\macau_store\thinkphp\library\traits\
ROOT_PATH
D:\WebSiteDirectory\fullway99\macau_store\
EXTEND_PATH
D:\WebSiteDirectory\fullway99\macau_store\extend\
VENDOR_PATH
D:\WebSiteDirectory\fullway99\macau_store\vendor\
RUNTIME_PATH
D:\WebSiteDirectory\fullway99\macau_store\runtime\
LOG_PATH
D:\WebSiteDirectory\fullway99\macau_store\runtime\log\
CACHE_PATH
D:\WebSiteDirectory\fullway99\macau_store\runtime\cache\
TEMP_PATH
D:\WebSiteDirectory\fullway99\macau_store\runtime\temp\
CONF_PATH
D:\WebSiteDirectory\fullway99\macau_store/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true
IS_AJAX
false
IS_GET
true
IS_POST
false
MODULE_NAME
home
CONTROLLER_NAME
Store
ACTION_NAME
index
PREFIX
tp_
SESSION_ID