My query is terribly big:
SELECT n1.*, n2.rating, n3.*, n4.*
FROM stats n1
INNER JOIN members n2
ON n1.n_id = n2.id
INNER JOIN add_info n3
ON n1.n_id = n3.n_id
INNER JOIN other_table n4
ON n1.code = n4.code
WHERE n1.n_id = {$member_id} AND n1.code='{$some_code}'
Am I doing this correctly? If yes, can I make it better, more optimal? Because I really need information from all of 4 tables.
Thank you.