Jakob-
select firstonly RecId, OrderId, FeedType, TransactionRelation from transactionOverview where transactionOverview.OrderId == _orderId&& transactionOverview.FeedType == _feedType;
query is ok, but there is problem is the undustanding. when Firstonly keyword only will fetch first record in table, either it satisfies ur where clause or not. in ur case it does not satisfy where clause and returns nothing