Originally posted by ma318 bad photo uses shutter speed of 1/13, f4.5 , ISO 800 , Night Scene Mode
good photo uses shutter speed of 1/80. f4.5 , ISO 800, Portrait Mode
As others had said, the problem is with the slower shutter speed.
In Night Scene mode, the camera would set a slower shutter speed to try to expose for the ambient light.
In Portrait mode, the camera assumes the subject could move so it set a higher shutter speed of 1/80 sec. The higher shutter speed resulted in cutting off a lot of the ambient light and prevented blur/ghosting due to subject movement and/or camera shake.
My recommendation to you is to use Portrait Mode when taking this type of INDOOR flash photo to get better results.
You would want to use Night Scene Mode, when you are outside at night with a background with lights that is relatively far away. And you want to see the person as well as the background in your photo. For example, with a person standing in front of you and far behind the person is a large tree with Christmas lights.
When you use flash, you are in fact doing a double exposure. One exposure from the ambient light and another exposure from the flash light.
In general, when you are using flash under indoor artificial lighting, it is better to set a higher shutter speed and/or smaller aperture and/or lower ISO to cut out the artificial light and just have the flash lighting up your subject. You will get better color because it is much easier for the camera to do color balance on one source of lighting then two lighting sources with different color temperature. If you really want the indoor artificial ambient light in your photo, then you should gel your flash to match the color temperature of the artificial light.
I was wrong, and the flash did fire. . .
ma318 is correct, but missed one thing -- "Auto Pict" mode. In this mode, the camera chooses what it thinks is the correct mode to shoot, and chose wrong for the first shot. To prevent this, as ma318 stated, choose the more appropriate "portrait mode", and all the shots will turn out the same.
Good exif info always helps
Scott