I have constructed a variable containing the SQL statement in my client-side
var sql = "SELECT * FROM restaurant WHERE (areaCategory" + " " +