Phosphorous from waste water could hold the key to sustainable agriculture.