Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT
- wp_posts.ID,
- wp_posts.post_author,
- wp_posts.post_date,
- wp_posts.post_excerpt,
- wp_posts.post_type,
- wp_posts.post_content
- FROM wp_posts AS wp_posts
- LEFT JOIN wp_term_relationships AS term_relationships ON wp_posts.ID=term_relationships.object_id
- LEFT JOIN wp_term_taxonomy AS term_taxonomy ON term_relationships.term_taxonomy_id=term_taxonomy.term_taxonomy_id
- WHERE
- wp_posts.post_author NOT IN ('1')
- AND wp_posts.post_parent = '0'
- AND wp_posts.post_type NOT IN ('page','nav_menu_item')
- AND term_taxonomy.term_id IN (472,625)
- ORDER BY wp_posts.ID DESC
- LIMIT 0,5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement