chore(HistoricTask/select): fix select statement by parameters

related to CAM-2510