Yes, I should have precised it:
I have a module that contains an array (of parameters), a function to set this array and one to get the parameters.
Before I need the query, I set the parameters.
In the query, I call the parameter that I need (here, it is: getParameter(1))
It seems messy, but actually it makes many things easier ( for example, if I had taken the parameter from a form, I would have had problems if the form's name changes). I learnt about this method in this forum.
Alex