$id = 1;
$resq = $dbpdo->prepare("SELECT id, title FROM blog WHERE id = ?");
$resq->execute(array($id));
while ($row = $resq->fetch(PDO::FETCH_ASSOC)){
echo '<div>'.$row['title'].'</div>';
}
$dbpdo->prepare(" SELECT id, title FROM blog WHERE id IN(?,?,?,?,?) ");
$resq->execute([1,3,4,5,6]);