What is the origin of clowns?

I´ve read that "clowns" were used during battles to inflict fear upon the enemy as far back as 1200. Possibly originating in ancient Egypt.

Please print the titles of these books! Or, have you dreamed it all?