Cuando creas un query con prepared statements:
Código PHP:
Ver original$sQuery = "SELECT * FROM person WHERE id = ?";
$stmt = $pdo->prepare($sQuery);
$stmt->bindParam(1, $id, PDO::PARAM_INT);
$stmt->execute();
foreach ($stmt->fetchAll() as $row) {
}
Saludos.