Fix: sql syntax error (missing ' on date)