Sorry, me again. Just wanted to mention that brackets also do the job if using "NOT" would be faster or better or whatever: --------- $where.= ' AND NOT (reviewstate < 0)'; --------- -- Kind regards, Franz Koch