(slug = 'beauty24' or id = 'beauty24') or (host like '%beauty24%') or id in ( select target_id from aliases where source_id = 'beauty24' and type in ('slug','domain') ) and 1=1