Section 218(1) in The Code of Criminal Procedure, 1973
(1)For every distinct offence of which any person is accused there shall be a separate charge, and every such charge shall be tried separately :Provided that where the accused person, by an application in writing, so desires and the Magistrate is of opinion that such person is not likely to be prejudiced thereby, the Magistrate may try together all or any number of the charges framed against such person.