I suggest rewriting it using sprintf:
sprintf('select count(*) from gene_threepoints where Window_size=30 and leftSeq>=%d and leftSeq<=%d and middleSeq>=%d and middleSeq<%d and rightSeq>=%d and rightSeq<%d and GENE_ID=''%d''', x(1), x+jump, y, y+jump, z, z+jump, GENE_id_Array{Loop})
Caution: you used x(1) which most people would interpret as indicating that you expect x to have more than one element, and they would then wonder whether x+jump is going to be correct there.
Your essential problem is that x and so on are numeric, and you are concatenating those numeric values on to a string without having converted the numeric values to string.
Best Answer