SQL error (You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 12) in (
select topics.topic_id,subject,left(body,255),short_content,body,
1 as score,
topics.icon
from topics ,topics_categories,help_categories
where access=1 and expires>=curdate() and since<=curdate() and intgroup_id in ('0',0)
and topics.topic_id=topics_categories.topic_id and
topics_categories.category_id='0' and
((topics_categories.category_id=help_categories.category_id and
help_categories.active in (1,2)) or '0'=0) and topics.intgroup_id in ('0',0)
group by topics.topic_id
order by score desc,topics.subject asc
limit 0,