Question: what does it mean when someone is in your mind?
Answer: It probably means that said person affects the way you feel, good or bad, whether you like it or not. Telling yourself not to think about him/her would be counter-intuitive.