SQL SELECT DISTINCT doesn't return distinct columns

     

I'm making a forum where i want the latest topics to be shown side-by-side with the category in which it belongs. However when someone makes a topic in the same category twice it shows the category twice and the different topics on the right side.


This is somewhat right but I want it to be only one category showing. I tried SQL SELECT DISTINCT for this