Mercyndol

I've been having crazy back pain at night time and told my Dr at my last appointment, he prescribed me mercyndol I had some last night before I researched it. Once I researched it, I found your not supposed to take it in your 3rd trimester?! I'm now 35 weeks +5 days :-/ do you think my baby will be ok?