Multiple Parameters in a Query in Delphi 4

We have Delphi 4 (Build 5.37) with a Query that has multiple parameters of
the same name in the SQL statements.  This when we set the parameter by
name(ParamByName) does seem to work when the SQL is compiled (parameter
substitution) - the first 2 occurences change to the parameter value but the
3rd doesn't, any ideas?

Please reply direct to mark.mam...@syntegra.bt.co.uk

Thanks

MarkM