Two flanges underneath toilet?
What it looks like is that you have a Ceramic Floor.

You need to use two flanges - the reason for this setup is that the pipe flange does not sit high enough for the toilet to properly seat against - the tile height is a problem its a bit too high. So the common procedure is to install a spacer or extender flange. Typically you will have a Caulking to Form a Gasket between the two lower flanges. Clink my link below to get the details.

Here is the options and a more detailed layout of what and why and how to resolve the issue.

How to remove a metal flange toilet gasket and replace it - some ideas for repair are included.