Hello friends I have a problem with my query, it turns out that I am making a query with related tables my table: inscription_projects I relate it to my table: inscription_students by means of the id of the inscription_projects table and that id I keep it in the inscription_alumins table with the name idinscripcionproyecto that is to know how many students belong to that project now the only problem that my query has is that if there are three students enrolled in 1 project only shows me the first student and it should not be because if there are three or more students enrolled to that project should show students who are registered to the project annex my query to know what I'm doing wrong.
$id= $_GET['id'];
$sql = "SELECT
inscripcion_proyectos.id,
inscripcion_proyectos.idcodificacion_proyectos,
inscripcion_proyectos.titulo_proyecto,
inscripcion_proyectos.iddepartamentos,
inscripcion_proyectos.idprofesor,
inscripcion_proyectos.idusuarios,
inscripcion_alumnos.idinscripcion_proyectos,
inscripcion_alumnos.cedula AS cedulaA,
inscripcion_alumnos.nombres AS nombresA,
inscripcion_alumnos.apellidos AS apellidosA,
profesores.cedula AS cedulaP,
profesores.nombres AS nombresP,
profesores.apellidos AS apellidosP,
usuarios.cedula,
usuarios.nombres,
usuarios.apellidos
FROM inscripcion_proyectos INNER JOIN inscripcion_alumnos AS inscripcion_alumnos ON
inscripcion_proyectos.id=inscripcion_alumnos.idinscripcion_proyectos
INNER JOIN profesores AS profesores ON inscripcion_proyectos.idprofesor=profesores.cedula
INNER JOIN usuarios ON inscripcion_proyectos.idusuarios=usuarios.cedula
WHERE inscripcion_proyectos.id='$id' GROUP BY idcodificacion_proyectos";