Fixes join with related models for "prefixed" tables.