in sql.js selectRecords function line 365, the sql statement is prepared by concatenating strings rather than passing params, and the ID property isn't quoted. This results in an sql error. The quick fix (rather than using ? and doing things properly) is to just add the quotes.

Code:



sql += filterStatement + idProperty + ' = ' + params;

should read:

Code:



sql += filterStatement + idProperty + ' = "' + params + '"';