Fixed bug on QueryHelper

bug is caused by using quote() twice(multiple time)