Je moet JOIN
aan de users
tabel twee keer, en geef ze verschillende identifiers (ook wel aliassen genoemd) ) op elke JOIN
binnen uw 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