..F....... [ZBX-8817] fixed incorrect SQL for web scenario and step item selection when deleting history and trends