I have a problem with a mysql query,
i have these tables : upload, users and ratings.
I am using the following query to get my latest posts :
Select All
upload.*,
Count(ratings.id) As totalrates,
Avg(ratings.rating) As avgrating,
users.nickname
From upload
Inner Join ratings
On ratings.upload_id1 = upload.id
Inner Join users
On upload.users_id = users.id
Group By upload.id DESC
However, when a post does not have any ratings yet, it won’t show up, thus making it impossible to vote on :p
Does any1 know how to adjust this query or any other good suggestions on how to solve this?
Thanks alot!
Two changes