As astroNikon mentioned, if the closer three batteries are inside of the minimum focusing distance of the lens (called the MFD quite often), they will be OOF. You ran into a good learning experience at the New Year's Party...shooting a fluid event like a New Year's party in low light with a fast prime lens on a small, pentamirror viewfinder d-slr, all those things can easily result in out of focus shots when you get back to the computer. Low light makes it tricky to really see the viewfinder image, the smaller overall viewfinder image of the APS-C cameras, and the slightly less-crisp, less-contrasty image that a pentamirror camera has, plus the fluid nature of the shooting situation, all that is a really,really significant list of potential challenges! If the camera was in AF-C, for continuous focusing, the camera will allow the photographer to shoot a picture at ANY time, even if the focus is not yet achieved. Plus, a fluid situation...people moving around, shots not being set-up and managed, but grabbed as best as one can grab them, and then the potential for actual fluids, like beer,wine, and spirits...
This is the kind of scenario where the reject rate is likely to be VERY high, almost as a given unless you take some steps to maximize your chances for success by adjusting the camera to the absolute maximally optimal set of shooting parameters and custom functions. I think setting the camera up and switching from AF-C focusing to AF-S, single focus, with the AF assist system most definitely enabled, is a good start. Set the firing rate on the camera to Continuous High, and shoot 3 or 4 shots on every situation, maybe 6,7,8 shots on things you really,really want to capture, and be prepared to kill-file over half the images.
The one way to come back with a high keeper rate is to elevate the ISO level, so that you can use a small squirt of flash, not a full-capacitor dump of juice per shot, and shoot far fewer shots with flash, so you're not a total buzz-kill for everybody, at least until the get good and liquored up, then they'll be slurring things like, "Hey,hey,hey! Camera-man! Dake ourrrr pit-cherrrr! Dake ouuur pi-tcher!" and you can snap away more freely. But seriously...go AF-S, AF Assist set to ON, jack the ISO up to 800, so the flash is not overly obnoxious, and that will also allow you to drag the shutter a bit, use second curtain synch if your camera has that, and you could get a really,really high rate of in-focus shots. Buuuut, they will all be flash shots. So....
You might find that in crummy light, single-point AF is weak, and that enabling more AF points will help the camera "grab on to something" so you can get a focus lock. The problem in dim light, especially with only one AF area enabled, is that dim, flat, or low contrast subjects are TRICKY TARGETS for most AF systems. If you hit the flat patch of a person's cheek in dim light, chances are the focus will see-saw and hunt/hunt/hunt and not get a good lock! In AF-C mode, when you hit the button, the focus might or might not be locked on. In AF-S, with the focus assist beam enabled and a speedlight in the hot shoe, you automatically about quadruple the chances of getting a no-flash shot that will be in-focus. If you turn the speedlight on, and shoot all-flash you're going to go from 80 percent junker shots to maybe 10 percent junkers.