I use this to assign NULL to a variable:
 Code:
$nullstring = ""

And that works for me with SQL as well.