Hi,
I think you are fetching more than one column which is actually not required. Dropdown box will populate with only one column ie
b.eid fetch that column only.
use the below query, this may helps you
select distinct B.eid from gen_complaints as A inner JOIN equipment as B where A.eid=B.eid
Thanks
--RA