Fix: bad sql syntax