WordPress.org

Make WordPress Core

Changeset 2931


Ignore:
Timestamp:
10/05/2005 10:48:51 PM (16 years ago)
Author:
ryan
Message:

SQL error fix from MikeLittle. fixes #1711

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/template-functions-category.php

    r2831 r2931  
    298298        $cat_dates = $wpdb->get_results("   SELECT category_id,
    299299        UNIX_TIMESTAMP( MAX(post_date) ) AS ts
    300         FROM $wpdb->posts, $wpdb->post2cat
     300        FROM $wpdb->posts, $wpdb->post2cat,  $wpdb->categories
    301301        WHERE post_status = 'publish' AND post_id = ID $exclusions
    302302        GROUP BY category_id");
Note: See TracChangeset for help on using the changeset viewer.