SELECT SQL_CALC_FOUND_ROWS fpirb_posts.ID
FROM fpirb_posts LEFT JOIN fpirb_term_relationships ON (fpirb_posts.ID = fpirb_term_relationships.object_id)
WHERE 1=1 AND (
0 = 1
AND
fpirb_term_relationships.term_taxonomy_id IN (321)
) AND ((fpirb_posts.post_type = 'blog' AND (fpirb_posts.post_status = 'publish' OR fpirb_posts.post_status = 'acf-disabled')) OR (fpirb_posts.post_type = 'post' AND (fpirb_posts.post_status = 'publish' OR fpirb_posts.post_status = 'acf-disabled')))
GROUP BY fpirb_posts.ID
ORDER BY fpirb_posts.post_date DESC
LIMIT 0, 6