SQL: Too many columns referenced (Error 1841)

There must be no more than 256 columns total referenced in any SELECT command. For more information, see SELECT - SQL Command.