This should work...
Replace "column_name" with the column name you want to get information from. Replace "table_name" with your table name. Replace "another_column" with the name of the column that has the known value.
This code works well if you only want to get one record/result. If you want bring back multiple records, you will have to create a loop.