Updated the query so that it will return all tickets in the search criteria instead of just 50