Index: general-template.php
===================================================================
--- general-template.php	(revision 10506)
+++ general-template.php	(working copy)
@@ -855,7 +855,11 @@
 		}
 	} elseif ( ( 'postbypost' == $type ) || ('alpha' == $type) ) {
 		$orderby = ('alpha' == $type) ? "post_title ASC " : "post_date DESC ";
-		$query = "SELECT * FROM $wpdb->posts $join $where ORDER BY $orderby $limit";
+		
+		$distinct = apply_filters('getarchives_distinct', "", $r);
+		$fields = apply_filters('getarchives_fields', "*", $r);
+		
+		$query = "SELECT $distinct $fields FROM $wpdb->posts $join $where ORDER BY $orderby $limit";
 		$key = md5($query);
 		$cache = wp_cache_get( 'wp_get_archives' , 'general');
 		if ( !isset( $cache[ $key ] ) ) {