hi i want to fetch the total user count of given referral ids in table i have tried using left join but i am getting duplicate results from mysql.
i am attaching of screenshot of my table.
when user register we ask the sponser id which is actually the referral id
of other user.