Takes a guess when foreign_key is unknown in some relationships