Invalid query:
SELECT I_ID, I_Description, I_Branch, I_UploadDate, I_Type FROM tblgn_images WHERE I_Branch = 26 ORDER BY I_UploadDate DESC LIMIT -28, 28

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 '-28, 28' at line 1