Here is the updated question:
the current query is doing something like:
$sql1 = \"TRUNCATE TABLE fubar\"; $sql2 = \"CREATE TEMP
how about:
DROP TABLE IF EXISTS fubar; CREATE TABLE fubar;
Or did you mean you just want to do it with a single query?