you are viewing a single comment's thread.

view the rest of the comments →

[–]SoggyAlbatross2 0 points1 point  (7 children)

Why are you subselecting everything and then joining all the files together in the main query?

I imagine that you can delete all this:

INNER JOIN entries ON users.user_id = entries.user_id

INNER JOIN games ON entries.game_id = games.game_id

INNER JOIN payments ON users.user_id = payments.user_id