You have an error in your SQL syntax; check the manual that corresponds to your MariaDB 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.st...' at line 1