Fixes join with related models for "prefixed" tables.
Merge remote-tracking branch 'origin/b/table-prefix-relatedmodel' into 1.3.x