INSERT IGNORE INTO dklog_urls (url) VALUES ('emj.bmj.com');

SELECT id FROM dklog_urls WHERE url='emj.bmj.com';

INSERT INTO dklog_offsiteclicks (url_id, user_id, click_when) VALUES (74, 0, NOW());