select * from qmd_links where byHour = and newRecordAdded = 'N' select * from qmd_links where byHour = and newRecordAdded = 'Y'