$sth = $dbh->prepare("SELECT * FROM `bots` WHERE `id` = ?"); $sth->execute(array(1)); $bots = $sth->fetch();
{"status":1,"chat_hostname":"SN-CHAT-09_"}1
{"status":0,"status_message":"ok","chat_hostname":"SN-CHAT-10_","event_types":["subscribed","unsubscribed","delivered","message","seen"]}1
$sth = $dbh->query("SELECT * FROM `bots` WHERE `id` = '1'")->fetch-assoc();