Added distinct clause to query.
Added getter for fieldname for better semantics.