How do I write a search query using Kohana PHP? <p>I have a table (<code>product_shoppingcart</code>) with 4 columns :</p> <pre><code>id, product_id, shoppingcart_id, product_quantity. </code></pre> <p>I'm using Kohana's ORM.</p> <p>I want to write a search query which returns all the rows where the <code>shoppingcart_id</code> column contains 1 (for example).</p> <p>I already tried: </p> <pre><code>$arr = ORM::factory('product_shoppingcart')-&gt;where('shoppingcart_id',$shoppingcartID)-&gt;find_all(); </code></pre> <p>but that doesn't work.</p> <p>Can anyone please help me out?</p>