[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 16:18:40 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:
--------------------------+-------------------------------------------------
Comment(by scribu):
Replying to [comment:8 filosofo]:
> If someone is querying just for meta_key and doesn't query the
meta_value, then this would work.
Yeah, that was the topic: no meta_value. :)
How about ''GROUP BY (wp_posts.ID)'' ?
That would work in both cases.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9167#comment:9>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list