Put will_endfirst, startedsecond:
SELECT DATEDIFF('2009-12-24', '2009-12-17')
7
Also remove the single quotes from your field names:
SELECT DATEDIFF(will_end, started) AS Duration
FROM my_table
WHERE id = 110
or replace them with reverse windows:
SELECT DATEDIFF(`will_end`, `started`) AS `Duration`
FROM `my_table`
WHERE `id` = 110
source
share