From 1e8fc2ce197fea0e6654f580d49aefb425ae5fe5 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 24 Jun 2008 17:49:24 +0000 Subject: [PATCH] Disambiguate column. Props voxpelli. fixes #7073 git-svn-id: https://develop.svn.wordpress.org/trunk@8185 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/query.php b/wp-includes/query.php index 8fb273101f..c6f662518a 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -928,7 +928,7 @@ class WP_Query { $page_paths = '/' . trim($q['pagename'], '/'); $q['pagename'] = sanitize_title(basename($page_paths)); $q['name'] = $q['pagename']; - $where .= " AND (ID = '$reqpage')"; + $where .= " AND ($wpdb->posts.ID = '$reqpage')"; $reqpage_obj = get_page($reqpage); if ( 'attachment' == $reqpage_obj->post_type ) { $this->is_attachment = true;