SELECT
r.report_id,
r.report_user,
u1.user_name AS reporter,
r.post_id,
p.user_id,
u2.user_name AS author,
post_img,
post_titile,
report_time,
r.report_reason
FROM
report r
JOIN post p ON r.post_id= p.post_id
JOIN user_info u1 ON r.report_user= u1.user_id
JOIN user_info u2 ON u2.user_id = p.user_id
report存放举报者的userid和帖子postid
post存放postid和作者userid
user_info表存放userid和username