Oracle Error ORA-25963: join index must be created on tables

Oracle Error Message

ORA-25963: join index must be created on tables

Reason for the Error

An attempt to create a join index was made, which failed because the from clause contains non table object.

Solution

Ensure that the from clause only contains tables.