retirado add  and a.active='Y' no report de script