select o.__timestamp as IDOrigen,d.__timestamp as IDDestino from 10minutos_photos d inner join 10minutos_photos_OLD o on d.id=o.id WHERE d.id < 1000