hola es que estoy creando un script para poder insertar y modificar y eliminar
 
tengo esto    
Código PHP:
Ver original- if (isset($_POST["insert"])-  and  $_POST["insert"] == "from1") {
 
-     $sql = mysql_query("SELECT * FROM aceso WHERE key='".$key."'"); 
-     if ($distributor == "" or $ip == "" or $key == "") { 
-         $nouser = "true";  
-      } else { 
-         $nouser = "false"; 
-         if($rowcheck == 1){ 
-         $userexists = "true"; 
-         } else { 
-         $userexists = "false"; 
-              mysql_query("INSERT INTO aceso (name, ip, key, date, status) VALUES ('".$name."', '".$ip."', '".date("Y-m-d H:i:s")."', '1')")-  or sqlerror ();
 
-             $status = "Distibuidor <b>".$distributor."</b> fue agregado!"; 
-         } 
-     } 
- } 
pero al insertar me tira este estor  
MySQL Server Error:
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 'key, date, status) VALUES ('ss', 'ss', '2012-09-19 20:03:20', '1')' at line 1 
que podria ser