How to get a value from a database based on a value from the same row, but different column - pls help!!!!!!!!!!

Is it possible to see your modified code?