Ver originalSELECT idCorredor, COUNT(posicion) as PrimerPuestoFROM tbl_carrerasWHERE posicion=1GROUP BY idCorredor