Index: taxonomy_facets.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/faceted_search/taxonomy_facets.module,v
retrieving revision 1.38
diff -u -r1.38 taxonomy_facets.module
--- taxonomy_facets.module	3 Mar 2009 04:55:34 -0000	1.38
+++ taxonomy_facets.module	20 Jan 2011 15:28:56 -0000
@@ -440,7 +440,7 @@
     // Since multiple terms might be used and cause multiple joins of
     // taxonomy_facets_term_node, we add the tid into the table alias to ensure
     // a unique alias.
-    $query->add_table('term_node', 'nid', 'n', 'nid', "term_node_{$this->_tid}");
+    $query->add_table('term_node', array('nid', 'vid'), 'n', array('nid', 'vid'), "term_node_{$this->_tid}");
     $query->add_where("term_node_{$this->_tid}.tid = %d", $this->_tid);
   }
 }
