в запросе ?)
SELECT COUNT(l0_.id) AS sclr_0
FROM homework_results h1_
INNER JOIN homeworks h2_
INNER JOIN lessons l3_ ON h2_.lesson_id = l3_.id
INNER JOIN learning_programm_lesson l0_ ON (l3_.id = l0_.lesson_id)
INNER JOIN learning_programms l4_ ON l0_.learning_programm_id = l4_.id AND (l4_.deleted_at IS NULL)
WHERE l4_.id IN (SELECT l5_.id
FROM learning_programms l5_
LEFT JOIN learning_programm_lesson l6_
ON (l5_.id = l6_.learning_programm_id AND l6_.is_done = ?)
INNER JOIN learning_programm_lesson l7_
ON (l5_.id = l7_.learning_programm_id AND l7_.is_done = ?)
WHERE (l5_.type = ? AND l6_.id IS NULL)
AND (l5_.deleted_at IS NULL))
ругается на
INNER JOIN learning_programms l4_ ON l0_.learning_programm_id = l4_.id AND (l4_.deleted_at IS NULL)
WHERE l4_.id IN (SELECT l5_.id
а как именно ругается ?
Обсуждают сегодня