Query should be a string not a hash