The mysql query looks like:
SELECT count(f.id) as total, m1.fname FROM members m1 INNER JOIN new f ON m1.id = f.id
The result of that query:
total | fname |
------------------
2 | john
3 | mike
5 | july
How can I sum values from column "total" using this mysql query?