My real SQL function has one more param, an "auth" string generated by mygame, which complements the social network id "sid".
I have just omitted it in my test case.
>