[wp-hackers] query question

Haluk Karamete halukkaramete at gmail.com
Tue Apr 15 01:51:30 UTC 2014


I'm just curious, in this WP query, what is the number "5" referring to?

[request] => SELECT SQL_CALC_FOUND_ROWS  wp_posts.ID FROM wp_posts  WHERE
1=1  AND ( (
                    SELECT COUNT(1)
                    FROM wp_term_relationships
                    WHERE term_taxonomy_id IN (31,32,33,34,35)
                    AND object_id = wp_posts.ID
                ) = 5 ) AND wp_posts.post_type = 'post' AND
(wp_posts.post_status = 'publish' OR wp_posts.post_status = 'private')
GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 0, 10


More information about the wp-hackers mailing list