SELECT * FROM Photos P WHERE P.RaceID=10506 AND P.WaterMark='116247'