Updated to the select function to use Open, closed, and ticket numbers