Fix the boolean generator for - and + queries for MySQL