eager select for references via intermediate table fix