Changed the base query select and criteria of the edit table to use table names in place of aliases to support SQLite 3.