Problem with Like system - Help required

What you just explained is exactly what I did, I added a user id row in the likes table, it didn’t have it before and I think that’s what was messing me up