PDO::ERRMODE_EXCEPTION, PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC] ); $row = $pdo->query("SELECT uid, mapping, record_aliases FROM tx_vitec_import_mapping WHERE model = 'product_xlsx'")->fetch(); if (!$row) { exit("No row for model 'product_xlsx' - nothing to clear, defaults apply already.\n"); } echo "Row uid " . $row['uid'] . "\n"; echo " mapping (cleared) : " . ($row['mapping'] ?: '(empty)') . "\n"; echo " aliases (KEPT) : " . ($row['record_aliases'] ?: '(empty)') . "\n"; $pdo->prepare("UPDATE tx_vitec_import_mapping SET mapping = '', tstamp = ? WHERE model = 'product_xlsx'") ->execute([time()]); echo "Done - the saved field mapping is cleared, the corrected defaults apply on the next preview.\n";