On Wed, 10 Feb 2016, Felipe Monteiro de Carvalho wrote: > On Wed, Feb 10, 2016 at 12:45 PM, Michael Van Canneyt > <michael at freepascal.org> wrote: >> Did you try clearing SQL first ? > > What do you mean? You used sql.add. Did you do sql.clear first ? Otherwise you'll be sending 2 sql statements as 1. Michael.