glpi: Refs #1996: Fix Historical slow SQL request