<?php
require_once __DIR__ . '/../config/config.php';
try {
    $db = Database::getInstance();
    $row = $db->fetch('SELECT * FROM conversations WHERE message_id = :mid', ['mid' => 'wamid.TEST123']);
    if ($row) {
        echo "FOUND:\n" . json_encode($row, JSON_PRETTY_PRINT) . "\n";
    } else {
        echo "NOT FOUND\n";
    }
} catch (Throwable $t) {
    echo "Error: " . $t->getMessage() . "\n";
}
