diff --git a/public_html/sites/all/modules/search_files/search_files_attachments.module b/public_html/sites/all/modules/search_files/search_files_attachments.module
index f8a098c..5811819 100644
--- a/public_html/sites/all/modules/search_files/search_files_attachments.module
+++ b/public_html/sites/all/modules/search_files/search_files_attachments.module
@@ -111,7 +111,7 @@ function search_files_attachments_search($op = 'search', $keys = NULL) {
       }
 
       // Do search.
-      $find = do_search($keys, 'file', 'INNER JOIN {files} AS f ON f.`fid` = i.`sid` '. $join1, $conditions1 . (empty($where1) ? '' : ' AND '. $where1), $arguments1, $select2, $join2, $arguments2);
+      $find = do_search($keys, 'file', 'INNER JOIN {files} AS f ON f.`fid` = i.`sid` LEFT JOIN upload u USING (`fid`) LEFT JOIN node n USING (`nid`)'. $join1, $conditions1 . (empty($where1) ? '' : ' AND '. $where1), $arguments1, $select2, $join2, $arguments2);
 
       // Do search.
       $find = do_search($keys, 'search_files_att');
