Disambiguate column. Props voxpelli. fixes #7073
git-svn-id: https://develop.svn.wordpress.org/trunk@8185 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2a3fcecdc1
commit
1e8fc2ce19
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user