this seems like such a simple error, but i'm completely stuck. Here is the code:
 if (!empty ($_POST['searchbird'])){
        $searchbird=rawurlencode(trim($_POST['searchbird']));
        $result = mysql_query("SELECT `sciname` FROM `wp_birds` WHERE $searchbird = `comname`");
    if (!$result) {
        echo 'Could not run query: ' . mysql_error();
        exit;
    }
    $searchterm = mysql_fetch_row($result);
the SQL database is setup Col 4 is the comname and col 5 is the sciname
and here is the error Could not run query: Unknown column 'this is the searchterm' in 'where clause'
 
     
     
    