Update ajax.tickets.php

fix the query "CLOSED BY", previous version includes into the  "CLOSED BY" query results the open tickets.