Uses DISTINCT in all search queries to enforce records being only returned once