Fix Limit SQL Statement