minor change to SQL yesterday query