Getting Fatal error:
Uncaught Error: Call to a member function fetchAll() on boolean in /customers/d/8/0/csgotail.com/httpd.www/bot-withdraw.php:12 Stack trace: #0 {main} thrown in /customers/d/8/0/csgotail.com/httpd.www/bot-withdraw.php on line 12 in this code.
<?php
include 'default.php';
$db = getDB();
# Get bot inventory
$bot64Id = '76561198252557804';
$botInventory = json_decode(file_get_contents("https://steamcommunity.com/tradeoffer/new/?partner=292292076&token=j4qmPUCn"), true);
$rgInventory = $botInventory['rgInventory'];
# Get current pot
$stmt = $db->query('SELECT * FROM currentPot');
$currentPot = $stmt->fetchAll();
echo jsonSuccess(array('rgInventory' => $rgInventory, 'currentPot' => $currentPot));
?>