Bug #5652 / TypeAheadSql: destroyed SQL statement. Fixed broken comparison and missing init of $sqlTest.