Make WordPress Core


Ignore:
Timestamp:
11/17/2010 12:33:32 PM (16 years ago)
Author:
scribu
Message:

Fix ambiguous column error. See #12891

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/taxonomy.php

    r16413 r16423  
    614614                        $terms = "'" . implode( "','", array_map( 'sanitize_title_for_query', $terms ) ) . "'";
    615615                        $terms = $wpdb->get_col( "
    616                                 SELECT $resulting_field
     616                                SELECT $wpdb->term_taxonomy.$resulting_field
    617617                                FROM $wpdb->term_taxonomy
    618618                                INNER JOIN $wpdb->terms USING (term_id)
    619619                                WHERE taxonomy IN ($taxonomies)
    620                                 AND $field IN ($terms)
     620                                AND $wpdb->terms.$field IN ($terms)
    621621                        " );
    622622                        break;
Note: See TracChangeset for help on using the changeset viewer.