Thread:Project:Support desk/database query condition, not in array/reply (3)

Sounds like you have not escaped the single quotes. According to the docs you should be fine when you set $conds to the "content" of the WHERE clause (without the word "WHERE"). I would try

$conds = "page_id NOT IN ('22', '34', '55', '66')";