[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 17:15:37 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:14 filosofo]:
 > If you're querying just by meta_key, then you don't care if there are
 multiple meta_values.  If you're querying by both meta_key and meta_value,
 then there won't be multiple meta_values.  So either way it doesn't
 matter.

 Ideally, you should exclude the meta_value column from the SELECT
 statement, but I'm not sure if it can be done.

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


More information about the wp-trac mailing list