SQL queries Zabbix components create/use must adhere to the following guidelines.
Server SQL statements:
"select hostid,host from hosts where hostid=" ZBX_FS_UI64 " and status=%d;"
"update hosts set host='%s',ip='%s',useip=%d where hostid=" ZBX_FS_UI64 ";"
All SQL parts in a multi-line query should have tree style