Ensure only parameters are added to SQL widget and no prototype functions.

When an AJAX result is being processed, the parameters will get added
including prototype functions otherwise.