I am executing a raw query to fetch records between two dates.
SELECT * FROM `tasks`
WHERE '01-08-2017 11:00'
BETWEEN `start_date` AND `end_date` AND `who`='vf00'
This query is returning results as below
start_date : 01-05-2017 10:30
end_date: 03-05-2017 10:00
It should not return any result since 01-08-2017 11:00 is not in between any range.