If you are a witness or a defendant in a criminal matter in a metro-NY court you should always consult with a NY criminal defense attorney before talking with law enforcement. In fact, you should always be prepared to testify in the event that you are called to do so. Even if you are not a target of a Grand Jury investigation or a case in Criminal or Supreme Court, an innocent mistake or an inconsistency in your testimony may have serious ramifications. The last thing you need is the prosecution to charge you with Perjury. Consulting with criminal defense attorneys, such as the former Manhattan prosecutors at Saland Law PC, is an investment in your time that will give you both a piece of mind and likely steer you clear of a Perjury charge.
Generally, Perjury occurs if you swear falsely. If you do so, you may be charged with a misdemeanor with a maximum sentence of one year in jail. For the purpose of this entry, however, we will address Perjury in the context of the court room or Grand Jury. In such a situation, you may be charged with Perjury in the First Degree. A person is guilty of Perjury in the First Degree when he or she swears falsely and when his or her false statement (a) consists of testimony, and (b) is material to the action, proceeding or matter in which it is made. Perjury in the First Degree is a “D” felony punishable by up to seven years in state prison.
New York Criminal Lawyer Blog

