I need to create a simple blog site where there are blogposts, users and comments.
In homepage will be shown the blogposts and below users’s comments with users’s information:
I have created 3 mysql table: blogpost, user, comment
and in homepage I need to do a JOIN query with these 3 tables.
Is there a way to avoid this JOIN with 3 query ?
You can create a view that represents data of that 3 tables and simply select the data from that view.
See here
Example: