[eluser]Jfly[/eluser]
I had a problem with include_related_count.
Code:
A Database Error Occurred
Error Number: 1054
Unknown column 'citations_subquery.id' in 'where clause'
SELECT `sm_citations`.*, (SELECT COUNT(*) AS count FROM (`sm_misconceptions`) LEFT OUTER JOIN `sm_citations` citations ON `citations_subquery`.`id` = `sm_misconceptions`.`citation_id` WHERE `citations_subquery`.id = `citations`.`id`) AS misconception_count FROM (`sm_citations`) ORDER BY `sm_citations`.`id` desc LIMIT 20
It seems like subquery is not working. $db_params is set to '' now, do I need to change it to something else?