A benefit fraudster and two people who broke court orders have been sentenced at York Magistrates Court.