Notice: Undefined offset: 0 in /var/www/u1619271/data/www/znanieetosila.ru/modules/components/tests/front_end/controller_component_tests.php on line 73
SELECT COUNT(questions.id) as count FROM lessons LEFT JOIN questions ON questions.lesson_id = lessons.id WHERE lessons.training_id =  AND questions.question != '' AND for_test != 0
SQLSTATE[HY000]: General error: 1 near "AND": syntax error