Hi Nandini,
if any of the 3 parameters are from an aggregate, instead of passing the values as input. you can do a sub-query in your AdvancedSQL.
if the parameter values not from aggregates, then its better to use BuildSafe_InClauseTextList ot BuildSafe_InClauseIntegerList.
Thanks
Kavin