Syntax error near '%1' -- Materialized view definition must not use the following construct: '%2'

Error constant SQLE_MATVIEW_SYNTAX_ERROR
ODBC 2 State 42000
ODBC 3 State ERROR
Parameter 1 Location of the feature used that is not permitted.
Parameter 2 The feature used that is not permitted.
Severity 15
SQLCODE –1031
SQLSTATE 42WB3
Sybase error code 13479
Probable cause

You attempted to create a materialized view whose definition violates one of the restrictions.