Kueri Ga JalanYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-2,2' at line 3 SQL : SELECT CategoryId AS catid, tgl AS tgl, gambar AS gambar, judul AS judul, isi AS isi, guid AS guid, (SELECT guid from category WHERE CategoryId=catid) AS kategori FROM posts WHERE tipe='informasi' AND CategoryId='13' ORDER BY PostId DESC LIMIT -2,2