SELECT id FROM product2 WHERE (active != 'n' AND active != 's' AND active != 'x')

Please email us at explaining what you were trying to do and if you can please include any error message that appeared.

Thank you for your help