The habitats where black nightshade~(Solanum nigrum) grows:

Arable
Gateways and tracks
Lowland fen
Nutrient rich eutrophic lake
Only East Anglia
Open habitat arable weed fertile loam and clay
Open habitat arable weed less fertile acid
Open habitat arable weed light lime rich