Index: trunk/ippTools/src/magictool.c
===================================================================
--- trunk/ippTools/src/magictool.c	(revision 24883)
+++ trunk/ippTools/src/magictool.c	(revision 24885)
@@ -1373,5 +1373,5 @@
 {
     psString queryFile = NULL;
-    psStringAppend(&queryFile, "magicdstool_censor_%s.sql", stage);
+    psStringAppend(&queryFile, "magictool_censor_%s.sql", stage);
     psString query = pxDataGet(queryFile);
     if (!query) {
@@ -1385,5 +1385,5 @@
     psFree(queryFile);
 
-    psStringAppend(&query, whereClause);
+    psStringAppend(&query, " WHERE %s",  whereClause);
 
     if (!p_psDBRunQuery(config->dbh, query)) {
@@ -1404,4 +1404,7 @@
     PS_ASSERT_PTR_NON_NULL(config, false);
 
+    psError(PS_ERR_PROGRAMMING, true, "-censorrun mode not ready yet");
+    return false;
+
     psMetadata *where = psMetadataAlloc();
 
@@ -1435,4 +1438,11 @@
     psFree(query);
 
+    psS32 numUpdated = psDBAffectedRows(config->dbh);
+    if (numUpdated == 0) {
+        psError(PS_ERR_UNKNOWN, false, "failed to censor magicRun");
+        psFree(whereClause);
+        return false;
+    }
+
     // Now queue any destreaked files to be re-verted
 
