This is the 2nd generation version 50mm AF f1.8. I think that it is higher quality than the later version, though it only works on cameras with the motor in the body.
This lens is in clean condition and works perfectly. The glass is clean and scratch-free and the focusing is smooth. Caps are included.