Never believe the cops. In this kind of situation, always ask the most educated adult you know what to do.
If that educated adult tells you to get a lawyer(recommended) and you dont have the money for it, both you and your friends should get a really good believeable story together.
And then pray.
But I'd recommend the lawyer route. The cop lied.