Bug in queryList with only one parameter, and fixed arrayBoundsException while calling with weird parameters