.......... [ZBXNEXT-497] created development branch
..F....... [ZBXNEXT-1782] improved an sql statement