Exception

Database Exceptionyii\db\Exception

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 '-7,7' at line 1
The SQL being executed was: select c.*,ca.name as catName,(SELECT CONCAT_WS(' ',ce.value,ed.value) From `x2_content_extend` ce left JOIN `x2_extend_data` ed ON ed.extendId=ce.id WHERE ce.contentId=c.id AND ce.code='91fc27502ef167f30de0f39a5ea0f630') as abstract,(SELECT ce.value FROM `x2_content_extend` ce WHERE ce.contentId=c.id AND ce.code='e1eb000dde15e05fa0dfaa8c4b9d2504') as keywords from `x2_content` c LEFT JOIN `x2_category` ca ON c.catId=ca.id where 1=1 AND c.id in(select cc.contentId from `x2_category_content` cc where cc.catId in(11870,178) group by cc.contentId having count(1)=2 ) ORDER BY c.sort ASC,c.id DESC LIMIT -7,7

Error Info: Array
(
    [0] => 42000
    [1] => 1064
    [2] => 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 '-7,7' at line 1
)
$_GET = [
    'id' => '11870',
    'page' => '0',
];

$_SERVER = [
    'REDIRECT_UNIQUE_ID' => 'ZgZIZxMkRbaLLdIBSRzqMAAAAAE',
    'REDIRECT_HTTPS' => 'on',
    'REDIRECT_SSL_TLS_SNI' => 'www.thinkwithu.com',
    'REDIRECT_STATUS' => '200',
    'UNIQUE_ID' => 'ZgZIZxMkRbaLLdIBSRzqMAAAAAE',
    'HTTPS' => 'on',
    'SSL_TLS_SNI' => 'www.thinkwithu.com',
    'HTTP_ACCEPT' => '*/*',
    'HTTP_USER_AGENT' => 'claudebot',
    'HTTP_HOST' => 'www.thinkwithu.com',
    'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin',
    'SERVER_SIGNATURE' => '',
    'SERVER_SOFTWARE' => 'Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.6.40',
    'SERVER_NAME' => 'www.thinkwithu.com',
    'SERVER_ADDR' => '172.18.175.120',
    'SERVER_PORT' => '443',
    'REMOTE_ADDR' => '18.232.66.188',
    'DOCUMENT_ROOT' => '/var/www/html/thinkwithu/web',
    'REQUEST_SCHEME' => 'https',
    'CONTEXT_PREFIX' => '',
    'CONTEXT_DOCUMENT_ROOT' => '/var/www/html/thinkwithu/web',
    'SERVER_ADMIN' => 'root@localhost',
    'SCRIPT_FILENAME' => '/var/www/html/thinkwithu/web/index.php',
    'REMOTE_PORT' => '42330',
    'REDIRECT_URL' => '/major/11870/0.html',
    'GATEWAY_INTERFACE' => 'CGI/1.1',
    'SERVER_PROTOCOL' => 'HTTP/1.1',
    'REQUEST_METHOD' => 'GET',
    'QUERY_STRING' => '',
    'REQUEST_URI' => '/major/11870/0.html',
    'SCRIPT_NAME' => '/index.php',
    'PHP_SELF' => '/index.php',
    'REQUEST_TIME_FLOAT' => 1711687783.0710001,
    'REQUEST_TIME' => 1711687783,
];

$_SESSION = [
    '__flash' => [],
];