Make sure the dates specified by the SQL (starts and ends) are correct.