When you entered Thailand, you didn't come in using a tourist Visa. You entered on an exempion giving you 30 days. The stamp in your passport is the only thing that matters.
The fact your visa was approved after entering doesn't matter, you did not enter Thailand using it. You are on an overstay.
As Robert said above, you should leave, pay the fine and try re-entering using the Visa.