<br><br><div class="gmail_quote">On Sat, Dec 26, 2009 at 8:23 PM, Sam Alves <span dir="ltr"><<a href="mailto:sam@oshean.org">sam@oshean.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<p style="margin-bottom: 0in;">Here's my best attempt:</p><p style="margin-bottom: 0in;">    :SELECT '* :FROM 'filter</p>
<p style="margin-bottom: 0in;">    :WHERE 'title</p><p style="margin-bottom: 0in;">    :IN (:SELECT 'filter_title :FROM
user_filter :WHERE (:= 'user-id 3))</p><p style="margin-bottom: 0in;">However, I get the following error:</p><p style="margin-bottom: 0in;">    Keyword WHERE takes exactly one
argument</p><p style="margin-bottom: 0in;">I've tried the SQL query in psql so I
know it works, but I can't seem to come up with an equivalent s-sql
statement.</p><br></blockquote></div><br>(:select '* :from 'filter :where<br>    (:in 'title (:SELECT 'filter_title :FROM user_filter :WHERE (:= 'user-id 3))))<br clear="all"><br>-- <br>Ivan Boldyrev<br>