[ PHP PDO Error 42000]
Message:
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-10 , 10' at line 13
Code:
42000
File:
/home/wollaston/public_html/admin/patchworks.php
Line:
31
Trace:
0# file :/home/wollaston/public_html/admin/patchworks.php 0# line :31 0# function :execute 0# class :PDOStatement 0# type :-> 0# args: 0 :Array 1# file :/home/wollaston/public_html/admin/website/classes/articles.cls.php 1# line :52 1# function :run 1# class :db 1# type :-> 1# args: 0 :SELECT
art_id,
artttl,
artdat,
artdsc,
arttxt,
arttyp,
artimg,
seourl,
seokey,
seodsc,
sta_id
FROM articles WHERE true ORDER BY artdat DESC LIMIT -10 , 10 1# args: 1 :Array 1# args: 2 :2# file :/home/wollaston/public_html/pages/articles/articles.php 2# line :103 2# function :select 2# class :ArtDAO 2# type :-> 2# args: 0 :2# args: 1 :2# args: 2 :10 2# args: 3 :0 2# args: 4 :2# args: 5 :2
ERROR: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-10 , 10' at line 13