I'm trying to pull a rate from currencies_rates table with JOIN, but when I run the query it throws error "[HY000][1114] The table '' is full". What am I doing wrong?
SELECT
game_id,
u.country,
COUNT(*) as count,
SUM(IF(currency = 'EUR', (bet * cr.rate), bet)) as total_bets
FROM
games_stats
INNER JOIN users u on games_stats.user_id = u.id
JOIN currencies_rates cr ON cr.to = 'EUR'
WHERE
u.country IS NOT NULL
GROUP BY
game_id,
user_id
ORDER BY
total_bets DESC;
Table currencies_rates

Table games_stats
