You inverted SQL and LDAP here for your variables !!