INSERT INTO 
 `visit` 
 ( `ip`, `country`, `browser`, `platform`, `profile`, `counter`, `id_user`, `request` ) 
 
VALUES 
 ( :ip, :country, :browser, :platform, :profile, 1, IF( :id_user>0, :id_user, NULL ), :request )