prepare(" SELECT * FROM questions WHERE topic_id = ? AND track_type = 'reinforcement' ORDER BY RAND() LIMIT 5 "); $stmt->execute([$topic_id]); $questions = $stmt->fetchAll(PDO::FETCH_ASSOC); /* HARD FAIL */ if (!$questions || count($questions) === 0) { die("❌ Reinforcement questions not found"); } ?>