Index: src/wp-includes/query.php
===================================================================
--- src/wp-includes/query.php	(revision 36372)
+++ src/wp-includes/query.php	(working copy)
@@ -3044,12 +3044,12 @@
 			$where .= sprintf( " AND $wpdb->posts.post_password %s ''", $q['has_password'] ? '!=' : '=' );
 		}
 
-		if ( ! empty( $q['comment_status'] ) ) {
-			$where .= $wpdb->prepare( " AND $wpdb->posts.comment_status = %s ", $q['comment_status'] );
+		if ( isset( $q['comment_status'] ) ) {
+			$where .= $wpdb->prepare( " AND $wpdb->posts.comment_status = %s", $q['comment_status'] );
 		}
 
-		if ( ! empty( $q['ping_status'] ) )  {
-			$where .= $wpdb->prepare( " AND $wpdb->posts.ping_status = %s ", $q['ping_status'] );
+		if ( isset( $q['ping_status'] ) ) {
+			$where .= $wpdb->prepare( " AND $wpdb->posts.ping_status = %s", $q['ping_status'] );
 		}
 
 		if ( 'any' == $post_type ) {
