[ticket/11763] Add missing variable when reporting a PM to avoid SQL Error

PHPBB3-11763