Index: wp-includes/query.php
===================================================================
--- wp-includes/query.php	(revision 10445)
+++ wp-includes/query.php	(working copy)
@@ -2238,11 +2238,8 @@
 			$groupby = 'GROUP BY ' . $groupby;
 		if ( !empty( $orderby ) )
 			$orderby = 'ORDER BY ' . $orderby;
-		$found_rows = '';
-		if ( !empty($limits) )
-			$found_rows = 'SQL_CALC_FOUND_ROWS';
 
-		$this->request = " SELECT $found_rows $distinct $fields FROM $wpdb->posts $join WHERE 1=1 $where $groupby $orderby $limits";
+		$this->request = " SELECT $distinct $fields FROM $wpdb->posts $join WHERE 1=1 $where $groupby $orderby $limits";
 		if ( !$q['suppress_filters'] )
 			$this->request = apply_filters('posts_request', $this->request);
 
@@ -2260,7 +2257,7 @@
 		}
 
 		if ( !empty($limits) ) {
-			$found_posts_query = apply_filters( 'found_posts_query', 'SELECT FOUND_ROWS()' );
+			$found_posts_query = apply_filters( 'found_posts_query', "SELECT COUNT($wpdb->posts.ID) FROM $wpdb->posts $join WHERE 1=1 $where" );
 			$this->found_posts = $wpdb->get_var( $found_posts_query );
 			$this->found_posts = apply_filters( 'found_posts', $this->found_posts );
 			$this->max_num_pages = ceil($this->found_posts / $q['posts_per_page']);
