Error fixed in patch
diff --git a/erpnext/patches/jan_mar_2012/production_cleanup.py b/erpnext/patches/jan_mar_2012/production_cleanup.py
index a7dd96d..f50278f 100644
--- a/erpnext/patches/jan_mar_2012/production_cleanup.py
+++ b/erpnext/patches/jan_mar_2012/production_cleanup.py
@@ -39,7 +39,7 @@
 
 	sql("update `tabBOM Material` set rate = moving_avg_rate, amount = amount_as_per_mar")
 
-	sql("update `tabFlat Bom Detail` set rate = moving_avg_rate, amount = amount_as_per_mar")
+	sql("update `tabFlat BOM Detail` set rate = moving_avg_rate, amount = amount_as_per_mar")