Use GROUP BY FIELD in zariz_query_zariz_alter().