Hi,
I have updated your OML based on your requirement, to display the correct data.
I have one suggestion for you If the same user like the same post multiple times then you are creating multiple entries in the Likes table, here you can check if the user already liked the post then don't create another entry for the same user for the same post.