As Sylvain noted, hr_expense_report does not have a table but a view instead so this line will raise an exception. You can just remove it.