This account of the many sellers who were cast out of the temple was reported by all the Evangelists, including John, but in his case he introduces it in a completely different order.… John proceeds to tell us that he went up to Jerusalem at the season of the Jews’ passover, and when he had made a scourge of small cords drove out of the temple those who were selling in it. This makes it evident that this act was performed by the Lord not on a single occasion, but twice over. Only in the first instance was it recorded by John, but in the last by the other three.
Source: HARMONY OF THE GOSPELS 2.67