No INTO clause on SELECT statement

Error code 2633
Probable cause

You specified an embedded static SELECT statement but you did not specify an INTO clause for the results.