Fixing a typo in a database query that causes problems on some platforms.