There are a number of reasons why you would get the P0300 code.
It could be due to worn spark plugs, bad coil, also could be for having improper fuel pressure, faulty injectors. It can even be due to a faulty PCM.
Repair Safety Notice: This information is for general instructional purposes only. Vehicle repair can be dangerous. Verify all information, follow manufacturer service procedures, use proper tools and safety equipment, and consult a qualified repair shop when needed.