Almost.  Just need to change the SELECT * to SELECT id for the inner query :)