// Determine inactive organizations by querying the database for max access timestamp for its users.
$cutoff_timestamp = $mdb2->quote(date('Y-m-d', strtotime('-1 year')));
$sql = "select org_id from".
// Determine inactive organizations by querying the database for max access timestamp for its users.
$cutoff_timestamp = $mdb2->quote(date('Y-m-d', strtotime('-1 year')));
$sql = "select org_id from".