select p.updatedAt >= CURDATE() - interval 7 day as daylog
конвертировать в
$qb->select('p.updated' >= CURDATE() - interval 7 day as daylog');