Error SQL:
QUERY:
select
contest.id,
contest.text_name,
count(foto.id) as count
from nvmu_ru_contest as contest
left join nvmu_ru_foto as foto on foto.select_contest=contest.id
where contest.check_active=1 and foto.check_active=1
group by contest.id,contest.text_name
having count(foto.id)>0
MYSQL Error:Lost connection to MySQL server during query