Vector Math Help

be51fca4ee7272877f88f823393f825d56e92d42.jpeg

This works perfectly, until the camera has been rotated.

But, as in Second picture, when the camera has been rotated and the mouse is moved (the thinner fantastically drawn arrows are the mouse and mouse movement) the camera goes in the wrong direction.

To clarify, the top 2 screenshots are before and after with the correct camera rotation. Whereas bottom two are after the camera has been rotated.

Any Ideas?