Cast to ObjectId failed for value «user» (type string) at path «_id» for model «Post»
SELECT id, updated_at, FROM_UNIXTIME(created_at, '%d.%m.%Y') AS day FROM $TABLE_NAME$ WHERE updated_at BETWEEN $DATE_START$ AND $DATE_END$ GROUP BY day;
EXPLAIN SELECT id, updated_at, FROM_UNIXTIME(created_at, '%d.%m.%Y') AS day FROM $TABLE_NAME$ WHERE updated_at BETWEEN $DATE_START$ AND $DATE_END$ GROUP BY day;
inner join `student` st on i.id = i.student_id