Fixed the bug where condition (was broken on mysql)