I do not know where these units were formed but the following represents the W. and William Lackey (Lacky) listing that are on my file:
W. Lackey, Co. F 34 Al. Inf. pvt also listed as W. R, Lacky
W. M. Lackey, Co. D, 51 Al.(Partisan Rangers) pvt.
W. S. Lackey Co. C 51 Al. (Partisan Rangers) pvt. also listed as W. S. lacky
William Lackey, Co. B 49th Al. Inf. pvt.
William Lackey Co. H, 4(Russell's) Al. Cav. pvt.
I'm sure that someone who is better acquainted with the origin of Al. Units, like Alan Pitts, can give you a lead on the most likely candidates for your ancestor. If you can get to a major library in Al. and look up the compiled service records for these men, you will very likely get a little help.
Good luck
Wayne Adams