SELECT * FROM photos_gallery_photo WHERE photos_gallery_id = ? ORDER BY id DESC LIMIT 10 OFFSET -10
Array
(
    [0] => 2
)
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 '-10' at line 1