diff --git a/include/staff/faq-categories.inc.php b/include/staff/faq-categories.inc.php index cf8d7965011a9d05b3f25bf8a76b7a15fc2da392..89c2e95d16882d3cd8e82aabef5e64b212e0fd0f 100644 --- a/include/staff/faq-categories.inc.php +++ b/include/staff/faq-categories.inc.php @@ -56,7 +56,7 @@ if(!defined('OSTSTAFFINC') || !$thisstaff) die('Access Denied'); if($_REQUEST['q'] || $_REQUEST['cid'] || $_REQUEST['topicId']) { //Search. $sql='SELECT faq.faq_id, question, ispublished, count(attach.file_id) as attachments, count(ft.topic_id) as topics ' .' FROM '.FAQ_TABLE.' faq ' - .' LEFT JOIN '.FAQ_CATEGORY.' cat ON(cat.category_id=faq.category_id) ' + .' LEFT JOIN '.FAQ_CATEGORY_TABLE.' cat ON(cat.category_id=faq.category_id) ' .' LEFT JOIN '.FAQ_TOPIC_TABLE.' ft ON(ft.faq_id=faq.faq_id) ' .' LEFT JOIN '.FAQ_ATTACHMENT_TABLE.' attach ON(attach.faq_id=faq.faq_id) ' .' WHERE 1 ';