Err
UPDATE tbltasks left join tblstaff on (tblstaff.staffid=tbltasks.addedfrom) SET tbltasks.rel_id = tblstaff.reportid where tbltasks.id=