INSERT INTO _scriptlog (script, statusz) 
  (SELECT 'update_7.18#1.sql' as script, 0 as statusz  WHERE 
     ((SELECT count(*) FROM _scriptlog WHERE (script = 'update_7.18#1.sql' )) = 0))