[sql] SQL Inner join more than two tables