Index: includes/query.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views/includes/query.inc,v
retrieving revision 1.50.2.4
diff -u -p -r1.50.2.4 query.inc
--- includes/query.inc	2 Dec 2009 22:59:18 -0000	1.50.2.4
+++ includes/query.inc	8 Mar 2010 19:56:35 -0000
@@ -254,7 +254,9 @@ class views_query {
     }
 
     if (!$join) {
-      $join = $this->get_join_data($table, $this->relationships[$relationship]['base']);
+      if (key_exists($relationship, $this->relationships)) {
+        $join = $this->get_join_data($table, $this->relationships[$relationship]['base']);
+      }
     }
 
     $join = $this->adjust_join($join, $relationship);
