Answered on May 03rd, 2011 at 11:14 AM
Your mistake was in letting them in without a warrant. Once you let them in and consent to a search, you risk charges if anything illegal is found during and within the reasonable scope of that search. Of course you can fight the charges. When arrested or charged with any crime, the proper questions are, can any evidence obtained in a search or confession be used against you, and can you be convicted, and what can you do?
Raise all possible defenses with whatever admissible and credible witnesses, evidence and facts are available for legal arguments, for evidence suppression or other motions, or at trial. You face potential jail and fines, so handle it right. Effective plea-bargaining, using those defenses, could possibly keep you out of jail, or at least dramatically reduce it. Go to trial if it can't be resolved with motions or a plea bargain. Not exactly a do it yourself project in court for someone who does not know how to effectively represent himself against a professional prosecutor intending to convict and jail you.
If you don't know how to do these things effectively, then hire an attorney that does, who will try to get a dismissal, diversion, reduction or other decent outcome through plea bargain, or take it to trial if appropriate. If serious about hiring counsel to help you in this, and if this is in SoCal courts, feel free to contact me. Ill be happy to help use whatever defenses there may be.