Fixed double where building in update query