, last_value, project_namespace_id
  FROM internal_ids
  INNER JOIN projects ON projects.id = internal_ids.project_id
  WHERE internal_ids.id IN(