Check out example codes for "multiple left join mysql". It will help you in understanding the concepts better.

Code Example 1

SELECT news.id, users.username, news.title, news.date, news.body, COUNT(comments.id)
FROM news
LEFT JOIN users
ON news.user_id = users.id
LEFT JOIN comments
ON comments.news_id = news.id
GROUP BY news.id

Learn ReactJs, React Native from akashmittal.com