The day is 4, the month is 10.
How do i query a price where the month is between the start_month and end_month range AND they day is also between a range?
The start_day, start_month, end_day and end_month can be variable in the database.
My current query:
$price = FrontendModel::getDB()->getVar('SELECT p.price FROM appartments_pricing as p
WHERE (p.days_start >= ? AND p.months_start >= ?) AND (p.days_end <= ? AND p.months_end <= ?) AND p.appartment_id = ?',
array($day,$month, $day, $month, $appartment_id));

If you want the day to lie within the range
days_start <= day <= days_end, then you need to switch your query around (same goes for month):