Index: admin-ajax.php
===================================================================
--- admin-ajax.php	(revision 17609)
+++ admin-ajax.php	(working copy)
@@ -1260,22 +1260,17 @@
 	else
 		$what = 'post';
 
-	$s = stripslashes($_POST['ps']);
-	preg_match_all('/".*?("|$)|((?<=[\\s",+])|^)[^\\s",+]+/', $s, $matches);
-	$search_terms = array_map('_search_terms_tidy', $matches[0]);
+	$args = array( 
+		'post_type' => $what, 
+		'post_status' => array('draft', 'publish'), 
+		's' => $_POST['ps'], 
+		'showposts' => 50, 
+		'cache_results' => false, 
+		'suppress_filters' => false,
+ 	);
 
-	$searchand = $search = '';
-	foreach ( (array) $search_terms as $term ) {
-		$term = esc_sql( like_escape( $term ) );
-		$search .= "{$searchand}(($wpdb->posts.post_title LIKE '%{$term}%') OR ($wpdb->posts.post_content LIKE '%{$term}%'))";
-		$searchand = ' AND ';
-	}
-	$term = esc_sql( like_escape( $s ) );
-	if ( count($search_terms) > 1 && $search_terms[0] != $s )
-		$search .= " OR ($wpdb->posts.post_title LIKE '%{$term}%') OR ($wpdb->posts.post_content LIKE '%{$term}%')";
+	$posts = get_posts( $args ); 
 
-	$posts = $wpdb->get_results( "SELECT ID, post_title, post_status, post_date FROM $wpdb->posts WHERE post_type = '$what' AND post_status IN ('draft', 'publish') AND ($search) ORDER BY post_date_gmt DESC LIMIT 50" );
-
 	if ( ! $posts ) {
 		$posttype = get_post_type_object($what);
 		exit($posttype->labels->not_found);
