diff --git a/includes/workbench_access_handler_filter_access.inc b/includes/workbench_access_handler_filter_access.inc
index 7a444fb..6d105c5 100644
--- a/includes/workbench_access_handler_filter_access.inc
+++ b/includes/workbench_access_handler_filter_access.inc
@@ -138,7 +138,12 @@ class workbench_access_handler_filter_access extends views_handler_filter_many_t
 
     // If not all node types use workbench access for permissions, add them here.
     if (!empty($node_types)) {
-      $this->query->add_where($group, "{$this->query->base_table}.type", $node_types, 'IN');
+      $table = $this->query->base_table;
+      if (isset($this->view->relationship['vid'])) {
+        $table = $this->view->relationship['vid']->alias;
+      }
+      $this->query->add_where($group, "$table.type", $node_types, 'IN');
     }
+
   }
 }
diff --git a/workbench_access.views.inc b/workbench_access.views.inc
index 9c8dcdc..88cf608 100644
--- a/workbench_access.views.inc
+++ b/workbench_access.views.inc
@@ -51,11 +51,7 @@ function workbench_access_views_data() {
       'left_field' => 'nid',
       'field' => 'nid',
     ),
-    //...to node_revision
-    'node_revision' => array(
-      'left_field' => 'nid',
-      'field' => 'nid',
-    ),
+
     //...to taxonomy_term_data
     'taxonomy_term_data' => array(
       'left_field' => 'tid',
