t('author')
        -&gt;where('date', '&lt;', time())
        -&gt;where('draft', '=', 1);

Model_Article::query()
        -&gt;where('author', '=', 16)
        -&gt;or_where('author', $subQuery-&gt;get_query(true))
        -&gt;get();</code></pre>
                                </article>

                                <article>
                                    <h3 id="custom_sql"><a class="internal_link" href="#/custom_sql">Custom SQL</a></h3>
                                    <p>It is also possi