Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT tcr_wpposts.* FROM tcr_wpposts WHERE 1=1 AND (
- tcr_wpposts.ID NOT IN (
- SELECT object_id
- FROM tcr_wpterm_relationships
- WHERE term_taxonomy_id IN (52)
- )
- ) AND tcr_wpposts.post_type = 'articles' AND (tcr_wpposts.post_status = 'publish' OR tcr_wpposts.post_status = 'private') GROUP BY tcr_wpposts.ID ORDER BY tcr_wpposts.post_date DESC
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement