Ya check the room fuse?? Found a reference to the room fuse and the P1794 Powertrain Control Module Battery Direct Power Circuit.
Looks like the room fuse keeps continuous power to the P.C.M.
This doesn't match the year of your car but talks about the room fuse = http://www.miata.net/garage/tsb/s005_92.html