title: How to get mysql data between SouthWest and NorthEast bounds
body: <p>Please help me to write mysql query. So that I can get records only for google map visible area.</p>
  
  <pre><code>var bounds = map.getBounds();
  var southWest = bounds.getSouthWest();
  var northEast = bounds.getNorthEast();
  var nelat = northEast.lat();
  var nelng = northEast.lng();
  var swlat = southWest.lat();
  var swlng = southWest.lng();
  </code></pre>
  
  <p>I want to load records only for the map visible area. Please find below my mysql query. It works for Asia Pacific and not for Europe and America.</p>
  
  <pre><code>SELECT * FROM listings WHERE latitude BETWEEN '".trim($_GET['swlat'])."' AND '".trim($_GET['nelat'])."' AND longitude BETWEEN '".trim($_GET['nelng'])."' AND '".trim($_GET['swlng'])."'
  </code></pre>