diff --git a/search_facetapi.extender.inc b/search_facetapi.extender.inc
index c045c8e..17ec88e 100644
--- a/search_facetapi.extender.inc
+++ b/search_facetapi.extender.inc
@@ -77,8 +77,8 @@ class FacetapiQuery extends SearchQuery {
 
     // For complex search queries, add the LIKE conditions.
     if (!$this->simple) {
-      $first->join('search_dataset', 'd', 'i.sid = d.sid AND i.type = d.type');
-      $first->condition($this->conditions);
+      $this->join('search_dataset', 'd', 'i.sid = d.sid AND i.type = d.type');
+      $this->condition($this->conditions);
     }
 
     // Add conditions to query.
