Index: temp/trunk/data/module/DB/common.php
===================================================================
--- temp/trunk/data/module/DB/common.php	(revision 5889)
+++ temp/trunk/data/module/DB/common.php	(revision 5890)
@@ -956,5 +956,4 @@
             return $realquery;
         }
-		print_r($realquery);
         $result = $this->simpleQuery($realquery);
 
@@ -1005,5 +1004,5 @@
 					$realquery .= $this->quoteSmart($value);
 				}else{
-					$realquery .= NULL;
+					$realquery .= 'NULL';
 				}
             } elseif ($this->prepare_types[$stmt][$i] == DB_PARAM_OPAQUE) {
