Fixed issue where change to SQLite broke a query using MySQL functions for parsing.