SELECT title FROM photos GROUP BY title
io lo farei diventare

SELECT DISTINCT title FROM photos