- $where .= qq| AND EXISTS (SELECT * FROM follow_up_links ful
- WHERE (ful.follow_up_id = fu.id) AND (ful.trans_id = ?))|;
+ $where .= qq| AND fu.id IN (select follow_up_id from follow_up_links where trans_id = ?)|;
+ # $where .= qq| AND (ful.follow_up_id = fu.id) AND (ful.trans_id = ?))|;
+ # $where .= qq| AND EXISTS (SELECT * FROM follow_up_links ful
+ # WHERE (ful.follow_up_id = fu.id) AND (ful.trans_id = ?))|;