UC-1373 - fixed query for retrieving ERL info to put in alarm.