That is why your sponsor or that company got blocklisted by the Immigration.

If my guess is right, your sponsor's place was inspected/raided by the police and all passports in the premises were confiscated...including yours and and you friend's passport.

The QAR6,000 is for the mandoop to pay the penalty fee and get your passport from CEID.

With regards to your expired visa, you still have 90 days from the date of expiration as the grace period to renew it.