I have 2 tables users and referral.
here is the structure of 2 tables.
referral table
| Column | ---------------- | ref_id | | from_