אז ככה,ביגלל שיש לי גירסת mysql 4.0 אז הפונקציה count לא עובדת,אני צריך לפצל ל-2 את הקוד כדי שיעבוד ...
PHP קוד:
select descr
, image
, ( select count(*)
from users
where groups = groups.id ) as users_in_groups
, ( select count(*)
from torrents
where grupa = groups.id ) as users_in_torrents
from groups;
תודה למבינים ...