Revert "Fixed distinct call in TicketSearch() to not use other fields than id."

This reverts commit d1f96a3583c1120211c0e78cf117d7e34b7a7079.