Why is my query not giving results?

Thanks for comments, It has been fixed by replacing ‘type’ => ‘DATE’ with ‘type’ => ‘NUMERIC’ I hope this will be helpfull. I adding link where I finded my answer https://gist.github.com/billerickson/3698476#file-gistfile1-php

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)