I have a table where I move balance (deposits and withdrawal), but in a field of the site I need to bring only the balance of the first deposit.
It would look something like this:
select saldo from historico where id = :id and (algum filtro)
I have tried with top 1
, and limit 0,01
but gave error.