I have two tables in the database. One with fans and another with teams. In the amateur table there is a field that is the team they follow.
I need a single query that returns all the fields of the equipment table and also tells me the number of followers for each team.
SELECT * FROM equipos
SELECT COUNT(*) FROM aficionados WHERE id_equipo = $id_equipo
This way I would get it in two queries, but how could I do it in one?