Yep, FlyerJosh is right. The only way you are able to log PIC as a student pilot (actual student pilot without private pilot certificate or higher) is to be the sole occupant in the aircraft.
The only other person that would be allowed in the aircraft would be the flight instructor, since student pilots are not authorized to carry passengers. When a flight instructor is with you can only log it as dual received.