From 349592dff0a1ac2d88df96174cb8f289c531791b Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 5 Oct 2007 16:28:42 +0000 Subject: [PATCH] Add some spacing. fixes #5137 for 2.3 git-svn-id: http://svn.automattic.com/wordpress/branches/2.3@6190 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/query.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/query.php b/wp-includes/query.php index 97621c6eef..8ea5bd2edf 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -1057,8 +1057,8 @@ class WP_Query { $q[$item] = array_unique($q[$item]); $tsql = "SELECT p.ID FROM $wpdb->posts p LEFT JOIN $wpdb->term_relationships tr ON (p.ID = tr.object_id) LEFT JOIN $wpdb->term_taxonomy tt ON (tr.term_taxonomy_id = tt.term_taxonomy_id) LEFT JOIN $wpdb->terms t ON (tt.term_id = t.term_id)"; - $tsql .= "WHERE tt.taxonomy = '$taxonomy' AND t.$taxonomy_field IN ('" . implode("', '", $q[$item]) . "')"; - $tsql .= "GROUP BY p.ID HAVING count(p.ID) = " . count($q[$item]); + $tsql .= " WHERE tt.taxonomy = '$taxonomy' AND t.$taxonomy_field IN ('" . implode("', '", $q[$item]) . "')"; + $tsql .= " GROUP BY p.ID HAVING count(p.ID) = " . count($q[$item]); $post_ids = $wpdb->get_col($tsql);