What year Miata? Sounds suspiciously like a coil to me. If you're around Plano, I can read the code for you this evening - or your friendly neighborhood Autozone can do likewise.
If it is a coil (and you're past the emissions warranty period), you'll want to avoid driving it as coil failure tends to lead rapidly to cat failure.