db->query("SELECT * FROM `" . DB_PREFIX . "runpod_workflow` WHERE `workflow_id` = '" . (int)$id . "'"); // Check if there's a row returned from the query if ($query->num_rows > 0) { // Return the first row of the result set return $query->row; } else { // Return null or handle the case where no row is found return null; } } public function addWebhook($webhook_data) { $this->db->query("INSERT INTO `" . DB_PREFIX . "runpod_webhook_logs` SET `webhook_data` = '" . $this->db->escape($webhook_data) . "', `date_added` = NOW()"); return $this->db->getLastId(); } }