Fix to allow where method to receive empty queries as parameter