I have a simple query shown here:

$result = $conn->query("select user from activation where token = '$token' ");

There is no result; however, I am sure that the connection is good, that $token has a value that is in the table, and that the spelling for the table and fields are correct.

If I substitute the actual value of $token (which I var_dumped to confirm) like this:

$result = $conn->query("select user from activation where token = 'f0ef1bc00c1628b7ae94f6d881b55f59' ");

I get the results I want.

Any ideas why I have this silly problem?