Affinity chromatography on columns containing nucleic acids