Error: SELECT g.`title`, g.`description`, f.location FROM gallery g INNER JOIN files f ON f.`id` = g.`image_id` WHERE g.for = 'gallery' ORDER BY created_at DESC LIMIT 10 OFFSET -10 => 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 '-10' at line 1