Description
The selection query is invalid because it is badly formed, does not return any feature, returns more than one feature, or returns an invalid feature with curved line segments.
Solution
Ensure that the selection query uses correct SQL syntax and returns exactly one valid feature.