Ver originalSELECT * FROM archivo WHERE cod LIKE 'M%'ORDER BY CAST(SUBSTRING(cod, 2) AS SIGNED INTEGER) DESC LIMIT 1