You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'rows from press_releases p left join reports r on r.id=p.report_id where p.statu' at line 1