select t2.fsaler1,
       t2.fsaler2,
       t1.fname,
       t1.fphonenumber,
       t1.faddress,
       t1.fnotes,
       t1.createdate,
       t1.famount
from tagentactivities_form t1
         inner join tagentactivities_share t2 on t1.siteid = t2.siteid and t1.tagentactivitiesid = t2.tagentactivitiesid and t1.tagentactivities_shareid=t2.tagentactivities_shareid
where t1.siteid =$siteid$ and t1.tagentactivitiesid=$tagentactivitiesid$