Sincere is right. As most of the asian big cities like Bangkok, Manila, Jakarta etc. you can buy the apartment but can't buy the land.
Here is pretty good explanation about the rules and restrictions:
Owning a property in Thailand | Bangkok Condo Finder