Active
Project:
Content Recommendation Engine
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 May 2007 at 00:44 UTC
Updated:
10 May 2007 at 06:35 UTC
this code in in voting_actions.inc in the distinct query doesn't handle the DB prefix.
$results = db_query("SELECT DISTINCT %s FROM {votingapi_%s} WHERE content_type = 'node'", $field, $table);
Comments
Comment #1
regli commentedCorrection.
The problem is actually in the cre "node_recommendation.module".
the code:
$db_result = db_query("SELECT DISTINCT tag from votingapi_vote");
should actually be
$db_result = db_query("SELECT DISTINCT tag from {votingapi_vote}");
Comment #2
frjo commented