Bugfixed query. Wrong closing of strings now corrected.

Signed-off-by: stefanlind <stefan.lind@esss.se>