Du hattest $aql statt $sql geschrieben.