diff -rup views/includes/handlers.inc views_new/includes/handlers.inc
--- views/includes/handlers.inc	2010-10-15 08:31:09.000000000 +1100
+++ includes/handlers.inc	2010-11-03 11:09:19.796179002 +1100
@@ -416,7 +416,7 @@ class views_handler extends views_object
    */
   function ensure_my_table() {
     if (!isset($this->table_alias)) {
-      $this->table_alias = $this->query->ensure_table($this->table, $this->relationship);
+      $this->table_alias = str_replace('-', '_', $this->query->ensure_table($this->table, $this->relationship));
     }
     return $this->table_alias;
   }
@@ -1261,6 +1261,7 @@ class views_join {
    * Build the SQL for the join this object represents.
    */
   function join($table, &$query) {
+    $table[alias] = str_replace('-', '_', $table[alias]);
     if (empty($this->definition['table formula'])) {
       $right_table = "{" . $this->table . "}";
     }
