A......... [ZBX-8424] simplified SQL request; renamed variables