in:
[select featured_id from featured where status = '0' and (((featured_date_available <= 20191215 and featured_date_available != '0001-01-01') and (expires_date > 20191215)) or ((featured_date_available <= 20191215 and featured_date_available != '0001-01-01') and (expires_date = '0001-01-01')) or (featured_date_available = '0001-01-01' and expires_date > 20191215)) ]