SELECT ID, term_id FROM wp_posts join wp_term_relationships on wp_posts.ID = wp_term_relationships.object_id join wp_term_taxonomy on wp_term_relationships.term_taxonomy_id = wp_term_taxonomy.term_taxonomy_id where taxonomy = “category” and term_id != 1 and term_id != 3083 and term_id != 3139 ORDER BY term_idで記事のidとカテゴリーのidを取得できるのでterm_id == valueの時article_listのレコードを表示するようにしたい