fixd script for load_f_ticket_detail
fixed query