Du skal JOIN
til users
tabel to gange, og giv dem forskellige identifikatorer (alias aliaser ) på hver JOIN
i din SQL.
SELECT
comment,
userFrom.username AS commentFrom,
userTo.username AS commentTo
FROM comments
JOIN users AS userFrom ON userFrom.ID = comment.commentFrom
JOIN users AS userTo ON userTo.ID = comment.commentTo