The sentence is a bit fragmented, but here is the literal breakdown of the words:
「親戚の子とお泊まりしたから、楽しい思い出がある。」 (Because I stayed over with a relative’s child, I have happy memories.) shinseki no ko kara to o tomari de kara
Sometimes, the detour is the destination. The sentence is a bit fragmented, but here