[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 MySQL server version for the right syntax to use near '-20 , 20' at line 14
Code:42000
File:/home/ashtreevets/public_html/admin/patchworks.php
Line:37
Trace:

0#file:/home/ashtreevets/public_html/admin/patchworks.php
0#line:37
0#function:execute
0#class:PDOStatement
0#type:->
0#args: 0:Array
1#file:/home/ashtreevets/public_html/admin/website/classes/articles.cls.php
1#line:117
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 AND arttyp LIKE :arttyp ORDER BY artdat DESC LIMIT -20 , 20
1#args: 1:Array
1#args: 2:
2#file:/home/ashtreevets/public_html/pages/custom/articles.php
2#line:73
2#function:selectByCategory
2#class:ArtDAO
2#type:->
2#args: 0:1
2#args: 1:
2#args: 2:20
2#args: 3:0
ERROR: 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 '-20 , 20' at line 14