$p,q \in \mathbb{P}$, primes
For $x \not\equiv 0 \bmod p$ you can write $(x-1)(x-2) \dots (x - (p-1)) \equiv 0$ mod $p$
Is there a way to do the same for a a composite modulus $pq$?
Note: $(x-1)(x-2) \dots (x-p) \dots (x-q) \dots (x - (pq-1)) \equiv 0$ mod $pq$ does not work. If $x \equiv 0$ mod $pq$ then the terms $(x-p)$ and $(x-q)$ become $pq$ which makes the polynomial $\equiv 0$ mod $pq$.
Also $x^{(p-1)(q-1)} \equiv 1$ mod $pq$ if $\gcd(x,pq) = 1$ does not cover the case when $x = kp$ or $x = kq$.
------- to clarify ------------------------------------------
Find a polynomial modulo pq such that $x \equiv 0 $ (mod pq) is not a solution but all other numbers are solutions. i.e. a filter.
This can be done if the modulus is a single prime.
@André Nicolas demonstrated that it cannot be done for a composite modulus.