SELECT DISTINCT kat, (SELECT vest FROM vesti v2 WHERE v1.kat = v2.kat ORDER BY datum DESC LIMIT 1 ) x FROM `vesti` v1