Fix bug in notice export SQL

This actually had no affect since most recent notices have only
originals.