I think you need to remove the curly brackets
select( 'DISTINCT(LinkOwner)' );
and also change fetchrow_hashref to fetchrow_array
and then $link will contain the value of the Username so you just need
output .= qq ~<tr><td width="10%" height="25">$link</td></tr>~;
Oh and you need a condition statement.
my $cond = GT::SQL::Condition->new( 'isValidated','=','Yes','CategoryID', 'IN', \@$all_ids);
my $sth = $link_db->select( ['DISTINCT(LinkOwner)'],$cond);
I think that's about it.
select( 'DISTINCT(LinkOwner)' );
and also change fetchrow_hashref to fetchrow_array
and then $link will contain the value of the Username so you just need
output .= qq ~<tr><td width="10%" height="25">$link</td></tr>~;
Oh and you need a condition statement.
my $cond = GT::SQL::Condition->new( 'isValidated','=','Yes','CategoryID', 'IN', \@$all_ids);
my $sth = $link_db->select( ['DISTINCT(LinkOwner)'],$cond);
I think that's about it.