181005: An invalid SQL statement was used in <value>.

Description

The SQL statement provided for the specified parameter must be valid.

Learn more about SQL statements in ArcGIS

Solution

Ensure that the SQL statement provided for the specified parameter is valid.