How can I count likes in the relationship table

0

Need

Select the posts along with the likes corresponding to each post. I selected what I want, but when I use the COUNT of the error, see the first image.

Data

The two tables also the post and the relationship tables to tell the likes.

    
asked by anonymous 12.02.2018 / 13:17

0 answers