Solution to overcome this problem is doing LEGAL things in the first place. You have violated the law by buying a visa through "your friend", and by working for the company which is NOT your sponsor. So who to be blamed? You got yourself in illegal situation, and now you ask for the legal advice. Doesn't make sense. You cooperated with crime, so stay there. This company might NEVER issue an exit permit for you (and yes! You cannot leave qatar without exit permit!), and you will stay in Qatar till your visa expired, and then you will have to pay penalty for each overstayed day QAR. 200 till your debt will reach 12,000. Then you will be either forced to pay these 12000 or you will be jailed and deported, and blacklisted in Qatar forever.
Good luck!
Solution to overcome this problem is doing LEGAL things in the first place. You have violated the law by buying a visa through "your friend", and by working for the company which is NOT your sponsor. So who to be blamed? You got yourself in illegal situation, and now you ask for the legal advice. Doesn't make sense. You cooperated with crime, so stay there. This company might NEVER issue an exit permit for you (and yes! You cannot leave qatar without exit permit!), and you will stay in Qatar till your visa expired, and then you will have to pay penalty for each overstayed day QAR. 200 till your debt will reach 12,000. Then you will be either forced to pay these 12000 or you will be jailed and deported, and blacklisted in Qatar forever.
Good luck!