Gd: making the query to look for active indicator as 1 instead of true