Come on man...that´s an easy one to solve...
the problem is when Dovecot makes is query is looking for the protocol managesieve, "AND disable%Ls". And the problem is that there´s no such column in the database.
The %Ls variable in Dovecot expands for the protocol he is looking, POP3, IMAP4, MANAGESIEVE.
I´m working on this problem also and as soon i´ve got a solution then i´ll post it here man.