fixed logic in ticket query was searching on type should have been status.