UPDATE xf_report_comment AS rc
INNER JOIN xf_report as r ON
(r.report_id = rc.report_id)
SET r.report_state = 'rejected'
WHERE rc.is_report = 1
AND r.report_state = 'open'
AND rc.user_id = 12345
I have only briefly tested this. Please backup first.
UPDATE xf_report_comment AS rc
INNER JOIN xf_report as r ON
(r.report_id = rc.report_id)
SET r.report_state = 'rejected'
WHERE rc.is_report = 1
AND r.report_state = 'open'
AND rc.user_id = 12345
I have only briefly tested this. Please backup first.