Fix error in < 5.3 in Query Builder