Active
Project:
Drupal Most Popular
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Oct 2012 at 04:23 UTC
Updated:
23 Oct 2012 at 04:26 UTC
Hi, When i enable most comments fresh stat will get query error, no comments table and c.timestamp column, at mostpopular_drupal.module line
112:
$query->innerJoin('comments', 'c', 'n.nid = c.nid');
117:
->condition('c.timestamp', $ts, '>=')
should be change to like this,
$query->innerJoin('comment', 'c', 'n.nid = c.nid');
->condition('c.created', $ts, '>=')