CREATE TABLE User (id INT PRIMARY KEY);
INSERT INTO User VALUES (1), (2), (3);
CREATE TABLE Control (
name TEXT,
user_id INT,
checked BOOLEAN NOT NULL,
FOREIGN KEY (user_id) REFERENCES User (id)
) DEFAULT CHARSET = utf8;
INSERT INTO Control VALUES ("наломать дров", 1, TRUE), ("курить бамбук", 3, FALSE);
SELECT DISTINCT User.id
FROM User JOIN Control ON User.id = Control.user_id
WHERE NOT Control.checked;