MYSQL
I have two tables in mysql, then I show the model: In which I need to recover all the players to which they belong to a club in specific. for example: Real Madrid and its entire staff.
QUERY
SELECT
eqpo.nombre_equipo,
jdrs.nombre_jugador
FROM equipos eqpo
INNER JOIN ciudad cdad
ON cdad.id_ciudad = eqpo.id_ciudad_equipo
INNER JOIN jugadores jdrs
ON jdrs.id_equipo_jugador = eqpo.id_equipos
WHERE eqpo.id_equipos = '3'
REQUIREMENTS
EXAMPLE 1
EXAMPLE 2
PROBLEM
but with the query I get all the names and in which the club to which it belongs is repeated, so when it is shown in the table it will be repeated 20 or 25 times the name of the Real Madrid team, of Barcelona, of Villarreal, etc.