Better error message for joins, includes, and where