بعد از ران کردن این کد ....
$sql = "update people set isSingle = 1 where id < : id";
$stmt = $db->prepare($sql);
$stmt->execute(['id'=>30]);
echoline($stmt->rowCount());
با این ارور مواجه شدم....
Fatal error: Uncaught PDOException: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens in C:\\laragon\\www\\mysqli\\php.mysqli\\PDO\\3-Update.php:13 Stack trace: #0 C:\\laragon\\www\\mysqli\\php.mysqli\\PDO\\3-Update.php(13): PDOStatement->execute(Array) #1 {main} thrown in C:\\laragon\\www\\mysqli\\php.mysqli\\PDO\\3-Update.php on line 13