0 2
( YEAR( wp_posts.post_date ) = 2019 AND MONTH( wp_posts.post_date ) = 7 )
) AND wp_posts.post_name = ‘5-things-the-fda-is-actually-saying’ AND wp_posts.post_type = ‘post’ ORDER BY wp_posts.post_date DESC
FROM wp_term_relationships AS tr
LEFT JOIN wp_term_taxonomy AS tt USING( term_taxonomy_id )
WHERE tt.taxonomy = ‘product_visibility’ AND tr.term_taxonomy_id = 10082
WHERE post_type = ‘product’ AND post_status = ‘publish’ AND p.ID NOT IN ( 116319, 116391, 116504, 116508, 116514, 117095, 117324, 118239, 118617, 118632, 119799, 119864, 120976, 120977, 120978, 120979, 120980, 120981, 130714, 130886 )
( wp_postmeta.meta_key = ‘_sidebar_to_replace’ AND wp_postmeta.meta_value != ” )
AND
( mt1.meta_key = ‘_condition’ AND mt1.meta_value IN (‘postwc-112396′,’post-112396′,’has-term-11362′,’in-term-7748′,’in-term-69′,’in-term-68′,’post’,’post-type-post’,’single’,’singular’) )
) AND wp_posts.post_type = ‘sidebar’ AND ((wp_posts.post_status = ‘publish’)) GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 0, 200