Queries updated for latest version of osTicket.