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