diff --git a/plugins/Live/API.php b/plugins/Live/API.php
index <HASH>..<HASH> 100644
--- a/plugins/Live/API.php
+++ b/plugins/Live/API.php
@@ -424,10 +424,14 @@ class API extends \Piwik\Plugin\API
             $orderByDir = "ASC";
         }
 
+        $visitLastActionDate = Date::factory($visitLastActionTime);
+        $dateOneDayAgo       = $visitLastActionDate->subDay(1);
+        $dateOneDayInFuture  = $visitLastActionDate->addDay(1);
+
         $select = "log_visit.idvisitor, MAX(log_visit.visit_last_action_time) as visit_last_action_time";
         $from = "log_visit";
-        $where = "log_visit.idsite = ? AND log_visit.idvisitor <> ?";
-        $whereBind = array($idSite, @Common::hex2bin($visitorId));
+        $where = "log_visit.idsite = ? AND log_visit.idvisitor <> ? AND visit_last_action_time >= ? and visit_last_action_time <= ?";
+        $whereBind = array($idSite, @Common::hex2bin($visitorId), $dateOneDayAgo->toString('Y-m-d H:i:s'), $dateOneDayInFuture->toString('Y-m-d H:i:s'));
         $orderBy = "MAX(log_visit.visit_last_action_time) $orderByDir";
         $groupBy = "log_visit.idvisitor";
refs #<I> only search for prev/next visitor one day in the past and future