in reply to DBD::mysql::st execute failed
$NULL = 'NULL';
How do you suppose this will be interpreted as the bound argument?