For our luck, you don't need to beat every Staff Ghost, there's a glitch that allows you to get this trophy just beating 1 Expert ghost, all you need to do is:
1 - Go to Time Attack.
2- Choose Sunshine Tour (Mirror).
3-Pick Sonic and select Speed MOD.
4- Now just beat the Expert ghost.
Good Luck!