[wp-trac] [WordPress Trac] #7073: Another ambiguous column in
query.php method get_posts()
WordPress Trac
wp-trac at lists.automattic.com
Mon Jun 2 08:13:41 GMT 2008
#7073: Another ambiguous column in query.php method get_posts()
----------------------+-----------------------------------------------------
Reporter: voxpelli | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: General | Version: 2.5.1
Severity: normal | Keywords:
----------------------+-----------------------------------------------------
In the latest trunk the line 931 in query.php should be:
$where .= " AND ($wpdb->posts.ID = '$reqpage')";
This bug also exists in v2.5.1
Background: A plugin of mine uses the filters posts_fields, posts_where
and post_join and the field ID exists in the joined table which today will
cause the query to fail because it writes (ID = '53') in the where-clause
which confuses MySQL - it should be (wp_posts.ID = '53').
--
Ticket URL: <http://trac.wordpress.org/ticket/7073>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list