INSERT INTO 
`task` 
 ( `name`, `description`, `start`, `stop`, `parent`, `id_user` )
 
VALUES 
 ( :name, :description, :start, :stop, IF( :parent > 0, :parent, NULL ), IF( :id_user > 0, :id_user, NULL ) )