Query failed for future dates, now fixed