fix for undefined variable on SQL error in news summary page