Using orWhere in bookshelf js object
<p>I have build a query using bookshelf js.  When I use <code>orWhere</code> in the query it gives an error</p>

<blockquote>
  <p>Object has no method 'orWhere'.</p>
</blockquote>

<p>Given below is my code</p>

<pre><code>var filters = {};

// Restaurnat id is must
if (restaurant_id != undefined) {
    filters.restaurant_id = restaurant_id
} else {
    res.json({
        status: 422,
        message: "No restaurant id provided",
        data: ""
    });
}

var query = dp.CusOrder.query('where', filters);

if (customer_name != undefined) {
    var first_name = '%' + customer_name + '%';

    query.where('first_name', 'LIKE', first_name)
        .orWhere('last_name', 'LIKE', first_name);
}

query.fetchAll()
    .then(function(result) {
        res.json({
            data: result
        });
    });
</code></pre>