the joke is on me -> ας πρόσεχα
whether you say that the joke is on a specific person, you mean that that person has tried to make someone else behold silly but has made himself or herself behold silly instead.
http://dictionary.cambridge.org/dictionary/engli...
Source: translatum.gr