fix the bug that could cause other site's stats deleted in cams2_refresh_from_log.php

fix the bug that could cause other site's stats deleted in cams2_refresh_from_log.php

Signed-off-by: Ray Allen <ray@ray-Lenovo-IdeaPad-S400.(none)>