$first_node = 1210590; $first = $dbh->xdo(ph { "SELECT * WHERE node_id = $first_node" }); # Calls prepare and execute $second_node = 1210586; $second = $dbh->xdo(ph { "SELECT * WHERE node_id = $second_node" }); # Same query, skips prepare, calls execute $third_node = 1210578; $third = $dbh->xdo(ph { "SELECT * WHERE node_id = $third_node " }); # Prepare still not called