Even you already stayed outside Qatar for Two years..It doesn't mean you can come back again.. You said you have made a ninor problem, even minor or major you have still the records in the police that is why you are banned to enter. Tell your wife to go to Immigration, to inquire for what reasons why you cannot get an entry visa and what to do???