Not familiar with P10, but I think there should be a minimum focusing distance spec in your users manual. If you want to move any closer than that, you will get photos like #2. If you really want to do macro type of photos, you need some accessories (e.g., close up lens).
Also make sure your shutter speed is fast enough, especially for indoor low light condition. Rule of thumb, shutter speed has to be 1/(focal length) so if you are using 100 mm focal length, you better make sure the shutter is faster than 1/100s.
fad