WHERE I.item_id = 'number'
AND R.date = (SELECT MAX(date)
FROM Rates
)
SELECT
item_id,
I.price * COALESCE(R.rate, 1) price_in_byr
FROM Items AS I
LEFT JOIN Rates AS R ON
I.currency = R.currency AND
R.date = (SELECT MAX(date) FROM Rates WHERE Rates.currency = I.currency)
WHERE
item_id = 5;