Normally I have made a between on a same column example:
$Where['autos.precio>='] = 200;
$Where['autos.precio<='] = 300;
$this->MainModel->listar('autos',$Where,'');
That would bring me all the cars in a price range of 200-300 this is done on a single column that is "price".
Now I want to make a between on two different columns "Reception_date" and "Sale_date":
Date format: YYYY / MM / DD
$Where['autos.fecha_recepcion>='] = "2017-08-09";
$Where['autos.fecha_venta<='] = "2017-08-25";
$this->MainModel->listar('autos',$Where,'');
I need to get the vehicles that are between 2 dates on two columns, I hope I have explained well greetings.