SELECT DISTINCT ID, post_title, post_content, post_date, post_author, post_type FROM (SELECT * FROM ((SELECT ID, post_title, post_content, post_date, post_author, post_type, 1 as seq FROM wp_posts a JOIN wp_term_relationships b ON a.ID = b.object_id JOIN wp_postmeta c ON a.ID = c.post_id WHERE a.post_status='publish' AND b.term_taxonomy_id = 9 AND(()OR())) UNION (SELECT ID, post_title, post_content, post_date, post_author, post_type, 2 as seq FROM wp_posts WHERE post_status='publish' AND (post_type='post' OR post_type='page') AND(()OR()))) as COMBINED ORDER BY seq, post_date desc) AS ORDERED

Nothing Found

Sorry, but nothing matched your search criteria. Please try again with some different keywords.