title: mysql Illegal mix of collations (latin1_swedish_ci,IMPLICIT)
body: <p>When I execute this query</p>
  
  <pre><code>SELECT * FROM login_table
  WHERE username = 'sam'
    AND pass = AES_ENCRYPT('passabc', 'mystring') 
  </code></pre>
  
  <p>I keep on getting this error.</p>
  
  <blockquote>
    <p>#1267 - Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '=' </p>
  </blockquote>
  
  <p>Thanks in advance for any help</p>