[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:24:32 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:17 filosofo]:
 > To keep things simple, I think removing the select for meta_value should
 be kept as a separate issue; I opened a ticket: #9177

 Come to think of it, you don't need to SELECT ''any'' field from
 wp_postmeta when querying either by meta_key, or meta_value or both,
 right? Only then a GROUP BY wouldn't be necessary.

Ticket URL: <http://core.trac.wordpress.org/ticket/9167#comment:18>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list