<?php
$qd = $db->query('SELECT * FROM `jurnal_system` WHERE `read`=?string and `time`<?i',
[1, (time() - 60*60*24*30)]);
while ($p_del = $qd->row()) {
$db->query('DELETE FROM `jurnal_system` WHERE `id`=?i', [$p_del['id']]);
}