clerk to the justices

Usually a barrister or solicitor of not less than five years standing who sits in court with lay magistrates and at their request advises them on questions of law, procedure and sentencing.