Just AND is right thing to use. Try: -
PHP Code:
$result = mysql_query("SELECT * FROM table WHERE username='$username' AND otherthing='$othervar'") or die(mysql_error());
That will at least output an error if part of the query is generating an error.