Index: views/openlayers_proximity_handler_filter_circle.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/openlayers_proximity/views/Attic/openlayers_proximity_handler_filter_circle.inc,v
retrieving revision 1.1.2.6
diff -u -p -r1.1.2.6 openlayers_proximity_handler_filter_circle.inc
--- views/openlayers_proximity_handler_filter_circle.inc	11 Oct 2010 10:51:33 -0000	1.1.2.6
+++ views/openlayers_proximity_handler_filter_circle.inc	22 Nov 2010 23:10:41 -0000
@@ -13,8 +13,9 @@ class openlayers_proximity_handler_filte
       
       $join = new views_join();
       $table = $this->table_formula_alias();
+      $left_table = !empty($this->relationship) ? $this->relationship : 'node';
       $join->definition['table formula'] = $this->table_formula($this->value['lat'], $this->value['lon']);
-      $join->construct($table, 'node', 'nid', 'nid', array(), 'RIGHT');
+      $join->construct($table, $left_table, 'nid', 'nid', array(), 'RIGHT');
       $this->query->queue_table($table, 'node', $join);           
       $this->query->add_field($table, 'distance');
       
