The Magpies were made to pay for missed chances at St James’ Park.