Fixed variable names in forum view notifications SQL