fixed bug in ticket controller which meant tickets would not load due to ambiguous field name in query.