update radcheck SET radcheck.attribute = 'rejected' where radcheck.username IN (select username from radpostauth where radpostauth.username = $mobile AND radpostauth.authdate < now() - 120)");
i want my query to update column "attribute" of a username in radcheck table when the same username in radpostauth table has value "reject" in his reply column i need to first update radpostauth.reply = 'reject' on the basis of radpostauth.authdate