alter table core_notify add INDEX lookup_b (sent, person_id, msgid, ontable);
ALTER TABLE core_notify add index lookup_d (person_id, msgid, ontable);
ALTER TABLE core_notify ADD INDEX lookup_e (onid, ontable, person_id, act_when);
alter table core_notify add INDEX lookup_b (sent, person_id, msgid, ontable);
ALTER TABLE core_notify add index lookup_d (person_id, msgid, ontable);
ALTER TABLE core_notify ADD INDEX lookup_e (onid, ontable, person_id, act_when);