SELECT id,tipo FROM contenuti WHERE permalink='spiaggia.html'