Fix #1527 : Wrong offset for classic query result
Merge pull request #686 from romainneutron/fix-1527

[3.8] Fix #1527 : Wrong offset for classic query result