eval { $sql = $dbh_receipt->prepare_cached($script); $sql->execute(); $sql->bind_columns(\$receipt); $sql->fetch(); $sql->finish(); }; if($@) { log_error($dbh_receipt->err(), $dbh_receipt->errstr(), $script); }