I have this
$sql=mysql_query("SELECT EMAIL FROM USERNAME WHERE EMAIL <> '".$_REQUEST['EMAIL']."' AND EMAIL NOT IN (".$str.")") or die("Error: ". mysql_error(). " with query ". $sql);
for example $str holds the value 'd','f' and there is a d and f in the EMAIL column in my table.
When I run the query I get this error "Error: Unknown column 'd' in 'where clause' with query"
I am a complete noob to mysql so I hope I'm just missing something very basic here. Any help is greatly appreciated!