Bad query: sql_get_member_album_images - SELECT img_id, filename, title, notes, allow_full_size FROM images as i, users as u WHERE i.user_id = 67 AND i.user_id = u.user_id AND ( status = 'A' OR status = 'U' ) AND hide IS NULL ORDER BY img_id DESC LIMIT -3, 12 . 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 '-3, 12' at line 15