title: OFFSET must not be negative
body: <p>When we have zero results for a pagination object, and we force <code>?page=-1</code>
  then we will get the error <code>OFFSET must not be negative</code>. </p>
  
  <p><em>-1 will get the last page by default.</em> </p>
  
  <p>So, If you add that parameter in url you can cause an internal error always if the output is empty to paginate.</p>
  
  <p><strong>Example:</strong></p>
  
  <pre><code> page = request.args.get('page', 1, type=int)
  
   pagination = company.comments.order_by(Comment.timestamp.asc()).paginate(
          page, per_page=current_app.config['COMMENTS_PER_PAGE'],
          error_out=False)
  </code></pre>
  
  <p>This will avoid the error, but it is annoying make always this type of validation to handle potential empty paginations.</p>
  
  <pre><code> if company.comments.count() &gt; 0:
        pagination = ...    
   else:
        pagination=None
  </code></pre>
  
  <p>My question is about the best way to handle this particular Internal server error. </p>