Fixed bug#9570 - AgentTicketSearch with exclamation mark emits invalid SQL.