correctly use aliases for "foreign keys"