Ver originalSELECT DISTINCT email, ubicacion_id FROM tablaWHERE email IN( SELECT emai FROM tabla GROUP BY email HAVING COUNT(email)> 1);