Они думали что я (был ) кто-то другой.
Они приняли меня за кого-то другого.

Also how I translate: There is a possibility that the were searhing for someone stupid.
Impossible to translate. Why someone would search for someone stupid?