Nitro - actually you're only half correct. You would need single quotes around a string you want to compare, e.g.
PHP Code:
$sql = "SELECT * FROM table WHERE name = '$username'";
// or
$sql = "SELECT * FROM table WHERE name = 'bdl'";
The `backtick` only works for selecting column names, not values. You must use single quotes.