Ticket attachment file bug solved
Fixed query logged bug