Thread:Project:Support desk/database query condition, not in array

I have a database query and I would like to add the condition: 'page_id' is NOT equal to values in $not_these_ids

I have set and have the query but it doesn't work. How should I write the query?