diff --git src/wp-includes/query.php src/wp-includes/query.php
index 8bf292e..b5d7e43 100644
--- src/wp-includes/query.php
+++ src/wp-includes/query.php
@@ -2755,8 +2755,9 @@ class WP_Query {
 				foreach ( $statuswheres as $index => $statuswhere )
 					$statuswheres[$index] = "($statuswhere OR ($wpdb->posts.post_status = 'inherit' AND " . str_replace($wpdb->posts, 'p2', $statuswhere) . "))";
 			}
-			foreach ( $statuswheres as $statuswhere )
-				$where .= " AND $statuswhere";
+			$where_status = implode(' OR ', $statuswheres);
+			if(!empty($where_status))
+				$where .= " AND ($where_status)";
 		} elseif ( !$this->is_singular ) {
 			$where .= " AND ($wpdb->posts.post_status = 'publish'";
 
