Fixed: sql syntax error