FIX sql errors in date range queries