insert into download_reasons (download_reason_id, repository_id, reason) values (:download_reason_id, :repository_id, :reason) select download_reason_id, reason from download_reasons where repository_id = :repository_id