--- a/controllers/mysql.js
+++ b/controllers/mysql.js
@@ -349,7 +349,6 @@
 */
 module.exports.updateRule= function(data, callback){
 	var sqlQuery = "UPDATE ruleslist SET description = '"+data.description+"', parameter = '"+data.parameter+"', conditionValue = '"+data.conditionValue+"', controlValue = '"+data.controlValue+"', notificationType = '"+data.notificationType+"' where rulesID = '"+data.rulesid+"'";
-	var sqlQuery = "UPDATE ruleslist SET description = '"+data.description+"' where rulesID = '"+data.rulesid+"'";
 	handlerDB(sqlQuery, function(err, result){
 		if (err){
 			callback(false,err);