SQL Error [1938] [HY000]: Target lists can have at most 1664 entries in 6.8.13 release

While running a query encountered below issue, however i have less columns in select statement.
** SQL Error [1938] [HY000]: Target lists can have at most 1664 entries.**
is there any maximum limit in memsql for query

Is thats MemSQL database engine error or is it coming from a client API or elsewhere?

How many columns did your SELECT have?

There are 1248 columns in select and group by on all those 1248 column. The error in SQL.workbench.

This limit was increased in 6.8.18 (I believe to 32K or 64k columns).

-Adam