I am a internationally certified fitness trainer and I frequently see complaining of same problem, wat i can say you is may be your form was wrong during lifting weights , now that you are in pain
Next Steps
I would suggest you to meet a physiotherapist who release your quadratus lumborum muscle or gluteas medias muscle through taping
Health Tips
Please avoid sweets before workouts