original_string: public function getSitesWithVisits($time, $now)
      {
          $sites = Db::fetchAll("
              SELECT idsite FROM " . $this->table . " s
              WHERE EXISTS (
                  SELECT 1
                  FROM " . Common::prefixTable('log_visit') . " v
                  WHERE v.idsite = s.idsite
                  AND visit_last_action_time > ?
                  AND visit_last_action_time <= ?
                  LIMIT 1)
          ", array($time, $now));
  
          return $sites;
      }
code: public function getSitesWithVisits($time, $now)
      {
          $sites = Db::fetchAll("
              SELECT idsite FROM " . $this->table . " s
              WHERE EXISTS (
                  SELECT 1
                  FROM " . Common::prefixTable('log_visit') . " v
                  WHERE v.idsite = s.idsite
                  AND visit_last_action_time > ?
                  AND visit_last_action_time <= ?
                  LIMIT 1)
          ", array($time, $now));
  
          return $sites;
      }
code_tokens: public function getSitesWithVisits ( $ time , $ now ) { $ sites = Db :: fetchAll ( "
              SELECT idsite FROM " . $ this -> table . " s
              WHERE EXISTS (
                  SELECT 1
                  FROM " . Common :: prefixTable ( 'log_visit' ) . " v
                  WHERE v.idsite = s.idsite
                  AND visit_last_action_time > ?
                  AND visit_last_action_time <= ?
                  LIMIT 1)
          " , array ( $ time , $ now ) ) ; return $ sites ; }
docstring: Returns the list of the website IDs that received some visits since the specified timestamp.
  
  @param string $time
  @param string $now
  @return array The list of website IDs
docstring_tokens: Returns the list of the website IDs that received some visits since the specified timestamp .