Wybierz inne kolumny z odrębnymi
SELECT * FROM table
WHERE id IN (
SELECT MAX(id) FROM table GROUP BY name
)
Outstanding Orangutan
SELECT * FROM table
WHERE id IN (
SELECT MAX(id) FROM table GROUP BY name
)