function findListingAvailabilityBTWNDates(){

  return db('reservation').join('listing','reservation.listing_id','listing.id').whereBetween('date',[startDate,endDate]).andWhere('lat').select('listing.id','listing.photo','listing.title','listing.lat','listing.lon','listing.price',)

.where("listing_id",listingID)
.whereBetween('date',[startDate,endDate])
}
//find any listings with availability between two dates (lat lon)
find any listings with availability between two dates (lat lon)
find any listings with availability between two dates ( lat lon )
function findListingAvailabilityBTWNDates(){
  return db('reservation').join('listing','reservation.listing_id','listing.id').whereBetween('date',[startDate,endDate]).andWhere('lat').select('listing.id','listing.photo','listing.title','listing.lat','listing.lon','listing.price',)
.where("listing_id",listingID)
.whereBetween('date',[startDate,endDate])
}
function findListingAvailabilityBTWNDates ( ) { return db ( 'reservation' ) . join ( 'listing' , 'reservation.listing_id' , 'listing.id' ) . whereBetween ( 'date' , [ startDate , endDate ] ) . andWhere ( 'lat' ) . select ( 'listing.id' , 'listing.photo' , 'listing.title' , 'listing.lat' , 'listing.lon' , 'listing.price' , ) . where ( "listing_id" , listingID ) . whereBetween ( 'date' , [ startDate , endDate ] ) }
find any listings with availability between two dates (lat lon)
find any listings with availability between two dates ( lat lon )