title: (Editied): Error executing query in metabase: (ERROR: syntax error at or near "and" Position: 33)
body: <p>I am running a very simple query in Metabase, however, I am getting an error.
  Following is the code I am running:</p>
  <pre class="lang-sql prettyprint-override"><code>SELECT user_id
  FROM order_order
  [[where date_placed between {{from}} and {{to}}]]
  and {{partner_id}}
  </code></pre>
  <p>Following is the error I am getting:</p>
  <pre><code>ERROR: syntax error at or near &quot;and&quot; Position: 33
  </code></pre>
  <p>I have been trying multiple ways to get this fixed, but couldn't get this to work. I would appreciate your help with this query. I don't see a problem with the query tho. What am I missing?</p>
  <p><a href="https://i.stack.imgur.com/3x3QW.png" rel="nofollow noreferrer">Attaching image for refrence</a></p>