Ejecuta esto
Código PHP:
public function getId($mail, $password){
$mail = $this->clean($mail);
$password = md5($password);
echo "SELECT id FROM {$this->table} where mail = '$mail' and password='$password' LIMIT 1;";
Y postea exactamente la consulta que te imprima