A chemist is a person that studied Pharmacy and thus, is trained in medications, their characteristics and their effects. Chemists often work in chemists, where they sell and prepare medicines such as syrups or tablets (pills).
In the USA they typically use the term pharmacist.