Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 [duplicate]

     
  

This question already has an answer here:

     
  

I tried to run the following code but it gets this error:


  

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'ani123' in 'where clause'' in D:xampphtdocsNew folderFINAL PROJECTQQUIZadmin eacher _action.php:44 Stack trace: #0 D:xampphtdocsNew folderFINAL PROJECTQQUIZadmin eacher _action.php(44): PDO->exec('DELETE FROM `qu...') #1 {main} thrown in D:xampphtdocsNew folderFINAL PROJECTQQUIZadmin eacher _action.php on line 44

  

Here is my code:


$dltQuizesSql = "DELETE FROM `quizes` WHERE `username`=".$_GET['user']; // line 44  $stmt1 = $conn->exec($dltQuizesSql);  

And here is an image of my table:  (image)


username exists in my table but I still get the error.


How can I solve it?