A Ghostly Problem is the eleventh episode of the first season of SpongeBob's Ponyville Adventure.
When SpongeBob spends the night at the Castle of Friendship, He was afraid that a ghost would come and haunts Equestria.
SpongeBob's Funtime at the Castle of Friendship/Midnight Snacks
At the Castle of Friendship in Equestria, SpongeBob SquarePants was having a fun time with his friends, Princess Twilight Sparkle, Applejack, Fluttershy, Pinkie Pie, Rarity, Rainbow Dash, Sunset Shimmer, Starlight Glimmer and Spike. That night, SpongeBob enjoys spending the night with his pony friends including Spike. Soon, SpongeBob went to help himself with a midnight snack. Then, he hear a strange noise. At first he thought it was a ghost sneaking up on him, He looks behind and Spike was only Starlight and Sunset checking on him.
Twilight's "To Do" List
The next morning, Twilight was checking her "To Do" list for her agenda. Just then, SpongeBob was getting a little freaked out thinking he's seen a ghost.
A Ghostly Problem
Later that night in Bikini Bottom, SpongeBob had trouble sleeping and couldn't stop thinking about a ghost haunting him. Just then, He saw a strange glow coming in front of him. It was Princess Luna, She came towards him and explained what he's going through. So, She magically took SpongeBob to his past as he was put to sleep.
Showing SpongeBob his past
Soon enough, She showed SpongeBob his past how he was afraid of ghosts in the first place. Back then, SpongeBob was in kindergarten camp when he keeps hearing scary stories which scared him a lot. Then, Princess Luna told him that he can't let fear from the past get the best of him. Soon, She returned him back to his own dream.
SpongeBob meeting his Equestria friends again/Feeling better then ever
The next morning at the Castle, SpongeBob arrived to greet his friends again feeling cured from his ghostly fear and much better as he can be happily.