Plankton
Some groups fall into both categories. Dinoflagellates can be either photosynthetic producers or heterotroph consumers; many species are mixotrophic depending upon their circumstances. It is also hard to fit viruses into this scheme; yet they are present in great numbers.