Filter record base on user and show their status
I am having a problem which as below and requesting for help.
I have a website where many books content are there. I also have a usergroup who come here to read the books and then base on their choice by using the login system they can make any books content favorite or non favorite etc, so that next time when they comes back and login they can find their previous favorite content. Note that I am storing their favorite contentID in a seperate table.
Now I need to present always to a user with all the books content and only a mark ❤️ will show beside the content that this contentID is in their favorite list and others are not in his favorite list by showing another ❤ .
The problem arise when a user loged in and visit to the page then it shows only the filtered favorite ❤️ datas based on their userID and not showing others non favorite content. I need to present always full content list (favorite and non favorite data of the user) to every user which will show which one is in favorite and which one not, but how to make the joint table query for showing the full content for every seperate user I am lost here. Please guide me.
Below is an example of the tables;