Trying to make a simple php login and running into some issues, here's the error:
Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='
Here's the query
SELECT * FROM `accounts` WHERE `username` = :user AND `password` = MD5(CONCAT(MD5(`salt`), MD5(:pass)))
Where :user
and :pass
are preparred statement parameters containing th e username and password.
I'm trying to simulate md5(md5(salt).md5(pass))
in the query.
Using PDO php.