I've written some SQL for a MySQL database.
SELECT U.Id, U.Name, U.Surname
FROM match M
INNER JOIN created_by C
ON C.MatchId = M.Id
INNER JOIN user U
ON U.Id = C.UserId
WHERE M.Id = 3
I'm going crazy because it doesn't seem wrong but the interpreter says there is a syntax error here near 'match M INNER JOIN created_by C ON C.MatchId=M.Id INNER JOIN user U O'
.
Thanks for any advice.