Fix query when no comparison or timestamp is passed