Refactord sql limit had typos.