Here is a snapshot of my code:
$fetchPictures = $PDO->prepare(\"SELECT * FROM pictures WHERE album = :albumId ORDER BY id ASC LIMIT :s
bindValue offset and limit using PDO::PARAM_INT and it will work