select first 1 a.* from account a left join imp_link b on  a.waccountid = b.waccountid
join debtor c on c.waccountid = a.waccountid and c.semail <> ''
where a.waccounttypeid = 1 and b.waccountid is null and a.bopenitem =  1
