[BUGFIX] Incorrect usages of string as array in QueryGenerator