Yes it will be a problem, immigration will check how you have entered Qatar..as entry Stamp remains on u r 1st PP u will face pbm to exit.