(slug = 'smartphotode' or id = 'smartphotode') or id in ( select target_id from aliases where source_id = 'smartphotode' and type in ('slug','domain') ) and 1=1