Index: wp-includes/query.php
===================================================================
--- wp-includes/query.php	(revision 21273)
+++ wp-includes/query.php	(working copy)
@@ -2216,6 +2216,14 @@
 		if ( $this->is_tax ) {
 			if ( empty($post_type) ) {
 				$post_type = 'any';
+				$taxonomies = get_taxonomies();
+				foreach ( $taxonomies as $taxonomy ) {
+					if ( isset($this->query_vars[$taxonomy]) ) {
+						$tax_obj = get_taxonomy($taxonomy);
+						$post_type = $tax_obj->object_type;
+						break;
+					}
+				}
 				$post_status_join = true;
 			} elseif ( in_array('attachment', (array) $post_type) ) {
 				$post_status_join = true;
