title: Is this a valid sql Statement? Or is there a better alternative for this?
body: <p>The sql statement is:</p>
  <pre><code>SELECT * FROM support_chat WHERE (`from`=? AND `to`=?) OR (`from`=? AND `to`=?);
  </code></pre>
  <p>Or is there an alternative for this sql statement? And, is this sql statement valid (I think it is, but please tell me)?</p>
  <p>Just in case:<br>
  My MySQL version is 8.0.22 (Installed from <a href="https://dev.mysql.com/downloads" rel="nofollow noreferrer">https://dev.mysql.com/downloads</a>, source distro with boost for linux)</p>