Anyone has an idea why this is failing in QA:

exec sp_helprotect 'MyFuncitionName'

the error I get:
Warning: Null value is eliminated by an aggregate or other SET operation.
Server: Msg 170, Level 15, State 1, Line 15
Line 15: Incorrect syntax near ')'.

The function is an Inline table-valued.
When I checked with EM there is indeed a set of roles that has 'select' permission to it.