Hi Dhruva_51,
I recommend pasting the stored procedure text into SSMS, then running it (if appropriate), to verify you don't have invalid syntax.
If you're not able to, or the query is still valid, are you able to post the block of code that it's throwing the error on?
Andrew