[14-Feb-2026 09:07:00 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'queue_id,0), IFNULL(payment_id,0), stage)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf' at line 16 in /home/wurnitky/public_html/API/agent_payments/mark-agent-paid.php:75
Stack trace:
#0 /home/wurnitky/public_html/API/agent_payments/mark-agent-paid.php(75): mysqli->query('CREATE TABLE IF...')
#1 /home/wurnitky/public_html/API/agent_payments/mark-agent-paid.php(217): ensureAgentPaymentEmailStagesTable(Object(mysqli))
#2 {main}
  thrown in /home/wurnitky/public_html/API/agent_payments/mark-agent-paid.php on line 75
[14-Feb-2026 09:17:48 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'queue_id,0), IFNULL(payment_id,0), stage)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf' at line 16 in /home/wurnitky/public_html/API/agent_payments/mark-agent-paid.php:75
Stack trace:
#0 /home/wurnitky/public_html/API/agent_payments/mark-agent-paid.php(75): mysqli->query('CREATE TABLE IF...')
#1 /home/wurnitky/public_html/API/agent_payments/mark-agent-paid.php(217): ensureAgentPaymentEmailStagesTable(Object(mysqli))
#2 {main}
  thrown in /home/wurnitky/public_html/API/agent_payments/mark-agent-paid.php on line 75
[14-Feb-2026 09:18:04 UTC] PHP Fatal error:  Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'queue_id,0), IFNULL(payment_id,0), stage)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf' at line 16 in /home/wurnitky/public_html/API/agent_payments/mark-agent-paid.php:75
Stack trace:
#0 /home/wurnitky/public_html/API/agent_payments/mark-agent-paid.php(75): mysqli->query('CREATE TABLE IF...')
#1 /home/wurnitky/public_html/API/agent_payments/mark-agent-paid.php(217): ensureAgentPaymentEmailStagesTable(Object(mysqli))
#2 {main}
  thrown in /home/wurnitky/public_html/API/agent_payments/mark-agent-paid.php on line 75
