Ionic sqlite where clause

this.db.executeSql(‘SELECT * FROM rm WHERE day=?, month=?, year=?’, [day, month, year]);

need to execute above query but getting error like
TypeError: Cannot read property ‘executeSql’ of undefined

I would suggest ensuring this.db is defined before you attempt to interact with it.

Thanks for the reply. Yes, i specified SQLiteObject. Problem is i called the function before sqlite triggered.