Search database name in information_schema database
information_schema in this context is a string value, not an object name, so you need to enclose it in quotes like so:
SELECT * 
FROM TABLES W
WHERE TABLE_SCHEMA NOT IN ('information_schema')