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

The MySQL docs show that the word "LIMIT" is always required even if only searching for an offset: https://dev.mysql.com/doc/refman/5.0/en/select.html