From d0a769dd73563e4ef04a432e6eaf5f01f1bb9fb7 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 5 Oct 2005 22:48:51 +0000 Subject: [PATCH] SQL error fix from MikeLittle. fixes #1711 git-svn-id: http://svn.automattic.com/wordpress/trunk@2931 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/template-functions-category.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/template-functions-category.php b/wp-includes/template-functions-category.php index bb934f0c90..9a4a208357 100644 --- a/wp-includes/template-functions-category.php +++ b/wp-includes/template-functions-category.php @@ -297,7 +297,7 @@ function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_orde if ( $optiondates ) { $cat_dates = $wpdb->get_results(" SELECT category_id, UNIX_TIMESTAMP( MAX(post_date) ) AS ts - FROM $wpdb->posts, $wpdb->post2cat + FROM $wpdb->posts, $wpdb->post2cat, $wpdb->categories WHERE post_status = 'publish' AND post_id = ID $exclusions GROUP BY category_id"); foreach ($cat_dates as $cat_date) {