select
a.catalog_id, a.brand_name, a.views, a.supplier_id, a.authorized,brand_aut_non_auth_rank
from (select catalog_id, brand_name, views, supplier_id, authorized,brand_aut_non_auth_rank from gold.brand_searches_top_catalogs_daily
where authorized = 0 and brand_aut_non_auth_rank <= 100 and created_date = current_date - interval '1' day