Opened 18 years ago
Closed 18 years ago
#7073 closed defect (bug) (fixed)
Another ambiguous column in query.php method get_posts()
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 2.6 | Priority: | normal |
| Severity: | normal | Version: | 2.5.1 |
| Component: | General | Keywords: | has-patch needs-testing |
| Focuses: | Cc: |
Description
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').
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
With the latest trunk - I mean: revision 8030