]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/user.php
Wordpress 3.1.2-scripts
[autoinstalls/wordpress.git] / wp-includes / user.php
index cd4b01d9cecf04e3359d795d40bb0828aa9c8949..0a1a4354ac9271c9b61358302b0c57704ffd5e98 100644 (file)
@@ -438,7 +438,7 @@ class WP_User_Query {
                        $where = get_posts_by_author_sql('post');
                        $this->query_from .= " LEFT OUTER JOIN (
                                SELECT post_author, COUNT(*) as post_count
-                               FROM wp_posts
+                               FROM $wpdb->posts
                                $where
                                GROUP BY post_author
                        ) p ON ({$wpdb->users}.ID = p.post_author)