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 (582)
) AND ((fpirb_posts.post_type = 'tribe_events' AND (fpirb_posts.post_status = 'publish' OR fpirb_posts.post_status = 'acf-disabled' OR fpirb_posts.post_status = 'tribe-ea-success' OR fpirb_posts.post_status = 'tribe-ea-failed' OR fpirb_posts.post_status = 'tribe-ea-schedule' OR fpirb_posts.post_status = 'tribe-ea-pending' OR fpirb_posts.post_status = 'tribe-ea-draft')) OR (fpirb_posts.post_type = 'post' AND (fpirb_posts.post_status = 'publish' OR fpirb_posts.post_status = 'acf-disabled' OR fpirb_posts.post_status = 'tribe-ea-success' OR fpirb_posts.post_status = 'tribe-ea-failed' OR fpirb_posts.post_status = 'tribe-ea-schedule' OR fpirb_posts.post_status = 'tribe-ea-pending' OR fpirb_posts.post_status = 'tribe-ea-draft')))
GROUP BY fpirb_posts.ID
ORDER BY fpirb_posts.post_date DESC
LIMIT 0, 6