UPDATE devices_measurements
			SET month_year_date_reset=NOW(), month_energy=0, month_switching_on=0, month_switch_on_time=0, month_energy_3phase=0,
				year_energy=0, year_switching_on=0, year_switch_on_time=0, year_energy_3phase=0
		WHERE month_year_date_reset<DATE_FORMAT(NOW(), '%Y-01-01');


		UPDATE devices_measurements
			SET month_year_date_reset=NOW(), month_energy=0, month_switching_on=0, month_switch_on_time=0, month_energy_3phase=0
		WHERE month_year_date_reset<DATE_FORMAT(NOW(), '%Y-%m-01');