The query processor could not produce a query plan because a worktable is required, and its minimum row size exceeds the ...

The query processor could not produce a query plan because a worktable is required, and its minimum row size exceeds the maximum allowable of %1!s! bytes. A typical reason why a worktable is required is a GROUP BY or ORDER BY clause in the query. If the query has a GROUP BY or ORDER BY clause, consider reducing the number and/or size of the fields in the clause. Consider using prefix (LEFT()) or hash (CHECKSUM()) of fields for grouping or prefix for ordering. Note however that this will change the behavior of the query.