I get this error:
Fatal error: Uncaught PDOException: SQLSTATE[HY093]: Invalid parameter number in
this is my code (this does not work):
"SELECT id, username, email, password FROM users WHERE (username = :usernameOrEmail OR email = :usernameOrEmail) AND password = :password"
but if I remove the the OR
, then it works!
"SELECT id, username, email, password FROM users WHERE username = :usernameOrEmail AND password = :password"