Specify table name when queries group by responsible (fixes #3202)