remove the space between where( and "id Not IN
w fel SQL, 5ally el SQL reserved words ya kulaha CAPITALS ya kulaha lowercase, bas mesh zay "Not"