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