mmm non ho capito...

cos'è che ti impedisce di aggiungere AND STATE = 'IN' alla clausola where?