Is this possible in PHP/MySQL?

Hello.

Basically I hold 2 variables. $column and $name.
Is it possible to do something like

$result = mysql_query(“SELECT * FROM Member WHERE $column = $name”);

I can’t get it to work, is there anything special involved?