SELECT c.nome AS dove, c.url_rewrite FROM comuni c WHERE REPLACE(c.nome, '-', ' ') = 'gioia del colle' OR REPLACE(c.url_rewrite, ' ', '-') = 'gioia del colle' LIMIT 0,1