I make a sql query using PHP PDO. When checking the result of the query, the value of a field returns empty, but the field has value. Using the SQL statement directly in phpMyAdmin the result returns normal with all fields.
I've never seen that happen. Can anyone clarify?
$sql = "SELECT Id, Nome, IdTransacao FROM dados WHERE id = 1";
$busca = $pdo->prepare($sql);
$busca->execute();
$result = $busca->fetchALL(PDO::FETCH_OBJ);
var_dump($result);
returns only Id, Name. IdTranslation has value but shows nothing.