Ambiguous column in query.php method get_posts()
|Reported by:||lawrence123||Owned by:|
Using v2.3, line 871 should be:
$where = " AND $wpdb->posts.ID = " . $qp?;
and line 876 should be:
$where = " AND $wpdb->posts.ID = " . $qpage_id?;
Background: My plugin uses the posts_where and post_join filters. When you join with another table that also has an ID column the query will fail, because above lines currently show: ' AND ID = '