1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'select pd.faqdesk_answer_short, p.faqdesk_id, p.faqdesk_date_added, pd.faqde...' at line 1
select count(select pd.faqdesk_answer_short, p.faqdesk_id, p.faqdesk_date_added, pd.faqdesk_question, \r\npd.faqdesk_answer_long, pd.faqdesk_answer_short from faqdesk_description pd, faqdesk p, faqdesk_to_categories p2c \r\nwhere p.faqdesk_status = \'1\' and p.faqdesk_id = p2c.faqdesk_id and pd.faqdesk_id = p2c.faqdesk_id \r\nand pd.language_id = \'4\' and p2c.categories_id = \'2\' order by pd.faqdesk_question) as total