I was visiting a friend and had stayed a couple of nights at their house. I was waiting to move into my new apartment in 3 days. While staying with my friend the police came to the door looking for a friend of his who was staying with him a month or so ago. I answered the door they asked if she was here or if I had seen her or knew who she was I told them yes i knew who she was and that she wasnt there. They then asked if they could come in and look for her I told them no that this was not my house and I could not give them permission to come in with out a search warrant. They then asked if I had her phone number I told them no but I might be able to get a message to her through a friend on FB messenger they then told me they were looking for her and wanting to question her regarding some tires and rims that were missing and to give them a call. The friend's house I was staying at had a court date the previous day that he missed by accident. The police come again the next day with a warrant for his arrest. They arrest and cuff him he just got out of the shower so i went back in to get his socks and shoes and put on him. After all of this and about 10 minutes later the officer tells us about probable cause for a search warrant and that he saw a joint on the table in the living room so he walks in the house and picks it up and bags it for evidence to go get a search warrant from the judge. When this happens my friend then told the police that if they find anything in there it is his and no one elses. So they take him to jail and leave me behind with 2 officers to watch me and will not let me back in the home to get anything or go to the bathroom. wherre they went to get the warrant is 20 minutes from the home one way. so while we're waiting on the officers to get back my friends father pulls up who is the owner of the property they explain to him whats going on and will not let him in either. So when they get back finally with the search warrant they find methamphetamine in the house and marijuana. They asked me if I knew if it was in there. I told them no i did not. Then they preceeded to tell me there was no way I couldnt have known because it was every where. Well maybe Im stupid but I sure did not see it anywhere or even knew my friend was doing this. Long story short I was also arrested for posession of marijuana and Methamphetamine. I am 44 years old and have never been in trouble for more than anything than a seat belt ticket. They said because i stayed there a couple of nights that i was a resident of the home. I have no mail going there and it is not the address on my ID. My question is what makes a resident of a home by the laws definition im assuming someone staying some where more than a couple of nights.