Как реализовать такое на SQL?
Как-то так:delete from texperts_answers 
where `expert_id` in (SELECT `expert_id` FROM texperts_answers 
group by `expert_id`
having SUM(`rating`)<0)
Как-то так:delete from texperts_answers 
where `expert_id` in (SELECT `expert_id` FROM texperts_answers 
group by `expert_id`
having SUM(`rating`)<0)