A detective will spend at least 18 months in jail after falsifying evidence to charge a single mother with drug trafficking.