I\'ve got a user table and a complaint table.
user
complaint
The complaint table has the following structure:
[opened_by] [
Use this query:
SELECT opener.username as opened_by, complaint.complaint_text, closer.username as closed_by FROM complaint LEFT JOIN user as opener ON opener.user_id=complaint.opened_by LEFT JOIN user as closer ON closer.user_id=complaint.closed_by