其他文章
Array
(
[0] => Array
(
[file] => C:\home\site\wwwroot\include\classes\DataMapper.php
[line] => 70
[function] => checkStatmentError
[class] => DM
[type] => ::
[args] => Array
(
[0] => PDOStatement Object
(
[queryString] => SELECT * FROM media WHERE media_status = ? and media_type = ? and media_highlight = ? and media_show = ? ORDER BY media_date desc limit -8, 8
)
)
)
[1] => Array
(
[file] => C:\home\site\wwwroot\include\classes\DataMapper.php
[line] => 114
[function] => executeStatmentQuery
[class] => DM
[type] => ::
[args] => Array
(
[0] => PDOStatement Object
(
[queryString] => SELECT * FROM media WHERE media_status = ? and media_type = ? and media_highlight = ? and media_show = ? ORDER BY media_date desc limit -8, 8
)
)
)
[2] => Array
(
[file] => C:\home\site\wwwroot\include\classes\DataMapper.php
[line] => 144
[function] => query
[class] => DM
[type] => ::
[args] => Array
(
[0] => SELECT * FROM media WHERE media_status = ? and media_type = ? and media_highlight = ? and media_show = ? ORDER BY media_date desc limit -8, 8
[1] => Array
(
[0] => 1
[1] => 3
[2] => 0
[3] => 1
)
)
)
[3] => Array
(
[file] => C:\home\site\wwwroot\sc\company-information\media-article.php
[line] => 115
[function] => findAll
[class] => DM
[type] => ::
[args] => Array
(
[0] => media
[1] => media_status = ? and media_type = ? and media_highlight = ? and media_show = ?
[2] => media_date desc limit -8, 8
[3] => Array
(
[0] => 1
[1] => 3
[2] => 0
[3] => 1
)
)
)
)
SQL: [142] SELECT * FROM media WHERE media_status = ? and media_type = ? and media_highlight = ? and media_show = ? ORDER BY media_date desc limit -8, 8
Sent SQL: [150] SELECT * FROM media WHERE media_status = '1' and media_type = '3' and media_highlight = '0' and media_show = '1' ORDER BY media_date desc limit -8, 8
Params: 4
Key: Position #0:
paramno=0
name=[0] ""
is_param=1
param_type=2
Key: Position #1:
paramno=1
name=[0] ""
is_param=1
param_type=2
Key: Position #2:
paramno=2
name=[0] ""
is_param=1
param_type=2
Key: Position #3:
paramno=3
name=[0] ""
is_param=1
param_type=2
SQLSTATE error code: 42000
Driver-specific error code: 1064
Driver-specific 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 '-8, 8' at line 1