Typically, P0300 is not related to any part of Drivetrain. This is 2 different systems. One is controlled by the PCM or ECU(engine computer), the other one by TCM(transmission computer).
If it is 1, 2 or just three cylinders that are not working well, you should first check the spark plugs...