Well you've got to admit, that if your passengers fled the scene when the cop showed up, that's a pretty good sign that someone's doing something wrong.
Where he potentially went wrong was in entering the house. But there is also a warrant exception called "Hot pursuit." Basically, if the police see the suspects run into a house, he would be able to follow after without a warrant. I don't think that's what happened here either, so you may have suppression issues if you want to fight this case.
Your lawyer would be able to move to have a hearing to determine whether the police violated your rights by making an illegal search and seizure. If you win the hearing any contraband obtained from your property would not be able to come into your trial
. If this is a drug possession case and the drugs get suppressed like that at a hearing, the whole case would have to be thrown out.
You need a lawyer for your case and he can talk to the DA, see the police reports
and determine how good a chance you would have to win a hearing on this issue,but it does sound as if there are some irregularities that can be challenged here.