select partnerid, partnertype from tbl_spl_opportunities where ownerid = and ownertype = and opportunityid =