SQL: Statement too long (Error 1812)

The object code is too long to be compiled. For more information, see SELECT - SQL Command.