You can enter and work in Qatar anytime (no need to wait for 24 months) without any problems if your previous sponsor issue No Objection Certificate. If you previous sponsor refuse to issue NOC, then you have to wait for 24 months. Meanwhile visiting on visit Visa is not a problem.