In a growing number of states and localities (such as cities) it is becoming illegal to ask job candidates about their past earnings histories.
Employers are advised to be careful about this question or consider not asking potential employees about their earnings history at all.
This National Law Review article goes into more detail.