It's important to treat everyone with kindness and respect, regardless of whether or not they treat you the same way. Playing favorites can create a toxic work environment and make others feel excluded or undervalued. It's understandable that you may have thought you were being nice, but it's important to be mindful of how your actions and behavior may be perceived by others. It's unfortunate that this has caused you problems in the past, and it's important to learn from those experiences and strive to do better moving forward. If your current job is in jeopardy, it's important to take responsibility for your actions and make efforts to improve your behavior and relationships with your coworkers.