public static function delteOldSent($hours) { $table = ipTable('email_queue'); $sql = "delete from {$table} where `send` is not NULL and " . ipDb()->sqlMinAge('send', $hours, 'HOUR'); return ipDb()->execute($sql); }