--- ./cck/content.module	2009-08-03 15:40:26.000000000 -0500
+++ /home/kafkala/public_html/sites/all/modules/cck/content.module	2009-08-18 03:22:04.000000000 -0500
@@ -1194,10 +1194,10 @@ function content_write_record($table, &$
   else {
     $query = '';
     foreach ($fields as $id => $field) {
-      if ($query) {
-        $query .= ', ';
+      if ($query && $placeholders[$id]!='NULL') {
+              $query .= ', ';
       }
-      $query .= $field .' = '. $placeholders[$id];
+      if ($placeholders[$id]!='NULL') $query .= $field .' = '. $placeholders[$id];
     }
 
     foreach ($update as $key) {
