Function getAuthForDomain
get auth for domain
TODO: will be called for each person in arrays (e.g. from getSearchableData) a single statement should be prepared which then will be executed for each person
Parameters summary
| integer | $id | person id | 
| string | $domain_type | $domain_type; person, ..., ... | 
Return value summary
| 
				array
			 | auth |