Hi,
I suspect that FP can´t find the location for temporary workspace, needed to physically place the cursor. That directory is set through TMPFILES in CONFIG.FP. If you run the SQL from the command window, and no TMPFILES is set, then is used the default start directory (most probably FP's)...