Fixed querying on a foreign key within an embedded model