From 3e01f9a81d43ecbc3d583e9f4f1b35d5e4501b7b Mon Sep 17 00:00:00 2001 From: scribu Date: Wed, 17 Nov 2010 12:33:32 +0000 Subject: [PATCH] Fix ambiguous column error. See #12891 git-svn-id: https://develop.svn.wordpress.org/trunk@16423 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/taxonomy.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 5a89ec7e8c..23b47f8b0c 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -613,11 +613,11 @@ function _transform_terms( &$terms, $taxonomies, $field, $resulting_field ) { case 'name': $terms = "'" . implode( "','", array_map( 'sanitize_title_for_query', $terms ) ) . "'"; $terms = $wpdb->get_col( " - SELECT $resulting_field + SELECT $wpdb->term_taxonomy.$resulting_field FROM $wpdb->term_taxonomy INNER JOIN $wpdb->terms USING (term_id) WHERE taxonomy IN ($taxonomies) - AND $field IN ($terms) + AND $wpdb->terms.$field IN ($terms) " ); break;