........S. [ZBX-7817] fixed SQL errors while linking applications to a host

git-svn-id: svn://svn.zabbix.com/trunk@42791 f4e7fd02-d210-4e34-a1e0-d4093fb66cc2
........S. [ZBX-7817] fixed SQL errors while linking applications to a host

git-svn-id: svn://svn.zabbix.com/trunk@42792 f4e7fd02-d210-4e34-a1e0-d4093fb66cc2