I get the following error about my syntax

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'replace='NOCOLOGY1' WHERE search='COMPANYNAME'' at line 1

```
$comp = "UPDATE msp_rereplacer SET replace='".addslashes($_POST[companyname])."' WHERE search='COMPANYNAME' ";

```

Can anyone pinpoint what I am missing?