Sounds like you need a Sum (Totals) Query where you use the "First" total control to limit the query output to one record per item.
I wonder whether you are storing multiple photos in the same data record in fields such as Photo1, Photo2, etc ... ? If you are, then there's a better...