The query GoldMine wrote is based on the notes in the notes tab. I'm not sure this is your intention as you originally were looking at the last-modified date, right?
You could add those contact fields, however, this way:
SELECT c1.company, c1.contact, c1.key5, NT.* FROM NOTES NT, contact1...