Fixes a MySQL syntax error if you specified an offset without a limit.