'".time_minus(3600 * 24 * 28)."' "; } $sql .= " ORDER BY ID DESC LIMIT $Limit"; $Log = $DB->query($sql); $DB->query("SELECT FOUND_ROWS()"); list($NumResults) = $DB->next_record(); $TotalMatches = $NumResults; $DB->set_query_id($Log);