Take the semigroup ring $\mathbb{Z}S$ where $S=$\{ $a,b,c$\} with multiplication $aS=bS=a, cS=c$. The elemwents $a$ and $c$ generate an ideal.