In effetti la query così impostata è scorretta. Prova così:

Codice PHP:
SELECT IDSTAR FROM stars WHERE IDSTAR NOT IN (SELECT IDStar FROM archive