Idiom: He who laughs last laughs longest

Idiom Definitions for 'He who laughs last laughs longest'

A person may feel satisfied or pleased when they d something bad or unfair  to you, but if you can get revenge, you will feel more satisfaction.
('He who laughs last laughs best' is also used, and 'he' is sometimes omitted.)

MySQL Error: 0 () -- Database error: Error: %s on line 112 in /home/aking/app/lib/class.db_base.php
#0 /home/aking/app/lib/class.db_mysqli.php(406): UE_DB_Base->haltmsg('Error: %s\n')
#1 /home/aking/app/lib/class.db_mysqli.php(130): DB_MySQLi->halt('Error: %s\n', NULL)
#2 /home/aking/app/lib/class.db_base.php(21): DB_MySQLi->query('SELECT w.word\n\t...')
#3 /home/aking/app/lib/class.idiom.php(283): UE_DB_Base->query('SELECT w.word\n\t...')
#4 /home/aking/public_html/reference/idioms/idiom.php(157): UE_Idiom->get_similar_idioms()
#5 {main}