[wp-trac] Re: [WordPress Trac] #9167: query_posts('meta_key=foo')
returns duplicate posts
WordPress Trac
wp-trac at lists.automattic.com
Thu Feb 19 18:38:59 GMT 2009
#9167: query_posts('meta_key=foo') returns duplicate posts
--------------------------+-------------------------------------------------
Reporter: scribu | Owner: anonymous
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.7.2
Component: General | Version:
Severity: normal | Keywords: has-patch
--------------------------+-------------------------------------------------
Comment(by scribu):
Replying to [comment:19 filosofo]:
> The GROUP BY (or a DISTINCT) is still necessary in the multiple meta_key
scenario because wp_postmeta is joined to wp_posts, no matter what is
selected.
Yes, you're right. (I've tested it on my localhost)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9167#comment:20>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list