First, the "little problem" may be a reason to blacklist you, so you would NEVER get a visa to Qatar.

Second, you need an NOC from your previous employer to be able to come before 2 years have passed.