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