I know this is a very basic question and I apologise. This is my first time applying a patch, can someone give me the link to the patch for 5.1.0. Thanks.

Don't bother.