From cb633358435bca79eecd4fae4dedf614be6258b7 Mon Sep 17 00:00:00 2001 From: Mateus Machado Luna Date: Mon, 6 May 2019 16:02:52 -0300 Subject: [PATCH] Fix issue on simple search. --- src/classes/class-tainacan-search-engine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/class-tainacan-search-engine.php b/src/classes/class-tainacan-search-engine.php index 2dd943691..4cfa723f1 100644 --- a/src/classes/class-tainacan-search-engine.php +++ b/src/classes/class-tainacan-search-engine.php @@ -404,7 +404,7 @@ class Search_Engine { if ( $this->is_tainacan_search && !empty( $this->relationships ) ) { $relationships = implode(',', $this->relationships); - $join .= " LEFT JOIN $wpdb->posts AS p2 ON (m.meta_value = p2.ID AND meta_key IN ($relationships)) "; + $join .= " LEFT JOIN $wpdb->posts AS p2 ON (m.meta_value = p2.ID AND m.meta_key IN ($relationships)) "; } return $join; }