This seems like a useful module. In order to get it to work I needed to change line 244 of entityreference_count.module from
$select->condition('n.status', 1);
to
$select->condition('e.status', 1);
Now the queries look ok and the count is made correctly.

Comments

tien.xuan.vo’s picture

Title: bug in query conditions? » Unknown column 'n.status'

Yeah, I saw this issue too. I think this is a typo.

tien.xuan.vo’s picture

Here is the patch

klokie’s picture

Status: Active » Needs review

Thanks :) Looks ok to me.

klokie’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

Works for me - can we please commit this patch?

damienmckenna’s picture

+1

damienmckenna’s picture

WorldFallz’s picture

Status: Reviewed & tested by the community » Fixed

Working my way through the issue queue in preparation for a release. Thanks everyone!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.