错误出现的位置:/www/wwwroot/v2.depin.wang/cmspro/models/mysql.system.php299
错误原因: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 '-12,12' at line 1出现异常:
SELECT * FROM `cp_news` WHERE cid=1 and tid>0 ORDER BY id desc LIMIT -12,12array(8) {
[0]=>
array(6) {
["file"]=>
string(57) "/www/wwwroot/v2.depin.wang/cmspro/models/mysql.system.php"
["line"]=>
int(299)
["function"]=>
string(7) "execute"
["class"]=>
string(12) "PDOStatement"
["type"]=>
string(2) "->"
["args"]=>
array(0) {
}
}
[1]=>
array(6) {
["file"]=>
string(60) "/www/wwwroot/v2.depin.wang/cmspro/models/template.system.php"
["line"]=>
int(1371)
["function"]=>
string(6) "select"
["class"]=>
string(5) "Mysql"
["type"]=>
string(2) "->"
["args"]=>
array(0) {
}
}
[2]=>
array(6) {
["file"]=>
string(60) "/www/wwwroot/v2.depin.wang/cmspro/models/template.system.php"
["line"]=>
int(712)
["function"]=>
string(7) "data_db"
["class"]=>
string(1) "T"
["type"]=>
string(2) "->"
["args"]=>
array(2) {
[0]=>
&array(12) {
["action"]=>
string(4) "news"
["panel"]=>
NULL
["class"]=>
NULL
["get"]=>
NULL
["post"]=>
NULL
["url"]=>
NULL
["from"]=>
string(4) "news"
["where"]=>
string(15) "cid=1 and tid>0"
["field"]=>
NULL
["rows"]=>
string(2) "12"
["query"]=>
NULL
["order"]=>
string(7) "id desc"
}
[1]=>
&string(4478) "{cmspro.list}
{action='news'}
{from='news'}
{where='cid=1 and tid>0'}
{rows='12'}
{order='id desc'}
{list}