Its illegal
But expats tend to twist this law because it will be very difficult to get busted (of course in addition to High proced accomodation,scarcity of single bedroom flats and studios in Doha,...) Its the same as if your bf/gf comes to visit you. Will that be legal or illegal?