Ver originalSELECT t1.numeroserie, COUNT(t1.numserie) tot FROM (SELECT numeroserie FROM tutabla ORDER BY id DESC)T1 GROUP BY t1.numeroserie HAVING tot > 1 LIMIT 1