Anda tidak dapat mereferensikan kolom alias di SELECT yang sama, Anda harus memasukkannya ke dalam subkueri:
SELECT currentVal, previousVal, (currentVal-previousVal)/previousVal
FROM (
SELECT IFNULL(DValue,0) as currentVal,
(SELECT IFNULL(DValue,0)
FROM ...
WHERE...) as previousVal,
FROM ...
WHERE ...) T;