Greetings, there are 2 db_cashin, db_shop with the same fields:
It is necessary to display in one request the information sorted in descending order by the time cell from both tables and take into account that steamid = '12345'
ZY I tried through UNION, but I can't sort it out ...
Here is my failed request:
SELECT amount, tradeofferid, status, time FROM db_cashin WHERE steamid = '{$steamid}' UNION SELECT amount, tradeofferid, status, time FROM db_shop WHERE steamid = '{$steamid}' 