W PDO pobieram dane w ten sposób:
$this->stmt = $this->db->prepare("SELECT * FROM $tabela ORDER BY id DESC LIMIT 1");
$this->stmt->execute();
foreach($this->stmt as $row)
{
$data = $row["data"];
}
ale jeżeli wiem, że zapytanie zwróci tylko jeden wiersz, to jak można pobrać z niego dane bez korzystania z pętli?