case 'mysql':
$ret = array();
$result = mysql_query($finalquery,$this->db);
if ($result){
if (substr($finalquery, 0, 6) == "SELECT")
while (($a = @mysql_fetch_assoc($result)) !== false)
$ret[] = $a;
} else
throw new Exception("Query failed. (".mysql_error($this->db).")");
$end_query = microtime(true);
$this->debug[] = array($finalquery,($end_query-$start_query)*1000);
return $ret;