SQL: fixed last commit about GROUP BY and context variables against multiple fields