When there is no data in the changeset table, Source_Date_Select() goes into an infinite loop and crashes as PHP runs out of memory.