SELECT id FROM users WHERE a = ?1 AND b = ?1;