I have the following MySQL code:
SELECT db.chr FROM jp_lists_kanji db, (SELECT list.chr,
FLOOR(1 + RAND() * x.m_id) 'rand_ind'
FROM jp_stats_kanji list,
(SELECT MAX(t.id) - 1 'm_id'
FROM jp_stats_kanji t) x
WHERE user_id = '12345678'
AND chr != '〇'
ORDER BY rand_ind
LIMIT 17) random WHERE db.id = random.chr
How is it possible that the result is 〇
? Shouldn't AND chr != '〇'
prevent that?