﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
14426,"unneeded ""SELECT FOUND_ROWS()"" when no posts are found",mark-k,ryan,"the query is being executed even if no posts are found....

IMHO the lines in query.php

{{{
		if ( !empty($limits) ) {
			$found_posts_query = apply_filters( 'found_posts_query', 'SELECT FOUND_ROWS()' );
			$this->found_posts = $wpdb->get_var( $found_posts_query );

}}}

should be replaced with

{{{
		if ( !empty($limits) ) {
                   if (!empty($this->posts)) {
			$found_posts_query = apply_filters( 'found_posts_query', 'SELECT FOUND_ROWS()' );
			$this->found_posts = $wpdb->get_var( $found_posts_query );
                   } else 
                       $this->found_posts = 0;
}}}
",enhancement,closed,normal,3.5,Query,3.0,normal,fixed,has-patch,mark@… tim@…
