The initial select statement goes like this, and will return X number of rows:
$query = $database->connection->prepare("SELECT * FROM table");
$query->execute();
while ($result = $query->fetch(PDO::FETCH_ASSOC)) {
}
Now I want to delete all of the rows returned in a single statement without looping, but only the exact rows returned since additional records may be inserted during the execution of the script.