Table 'sv2_sexysources.category' doesn't exist SQL=select c.*,
count(distinct g.gallery_id) as num, count(if(gps.bandwidth=0 or gps.bandwidth>=u.bandwidth,1,null)) as num1,
count(distinct i.id) as num2
from category as c
left join gallery as g on g.category_id=c.category_id
left join images4g as i on i.gallery_id=g.gallery_id
left join users as u on u.id=g.uid
left join groups as gps on u.gid=gps.id
where 1
group by c.category_id
order by c.name
Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /users/sexysources/mysecond-life.com/www/images/includes/database.php on line 263