add  and a.active='Y' no report de script
Merge origin/master