Return an error if an invalid column is used to filter after a join

Fix #652