INSERT INTO `oc_preferences` (`userid`,`appid`,`configkey`,`configvalue`) SELECT 'Mauricio Solano','core','timezone','America/Guatemala' FROM `oc_preferences` WHERE `userid` = 'Mauricio Solano' AND `appid` = 'core' AND `configkey` = 'timezone' HAVING COUNT(*) = 0