fixed sql in getTodayLTEnow in index.php