Closed (fixed)
Project:
MySite
Version:
5.x-2.11
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Sep 2007 at 20:59 UTC
Updated:
11 Sep 2007 at 19:13 UTC
Comma after u.name is throwing errors.
/*
OLD, BUG:
$sql = "SELECT DISTINCT(u.uid), u.name, FROM {users} u INNER JOIN {node} n ON u.uid = n.uid WHERE n.status = 1 AND n.type = 'blog'";
FIX:
*/
$sql = "SELECT DISTINCT(u.uid), u.name FROM {users} u INNER JOIN {node} n ON u.uid = n.uid WHERE n.status = 1 AND n.type = 'blog'";
Comments
Comment #1
bob.hinrichs commentedoops, i set the wrong verions in previous post.
Comment #2
agentrickardWhere did you get that code from?
If you check the current tarball, line 62 of blog.inc is actually:
So somehow you're missing the 'u.picture' piece after the comma.
Comment #3
bob.hinrichs commentedThanks, I am downlaoding the module with the following CVS command, which hopefully grabs from the DURPAL 5 branch:
cvs -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal export -d mysite -r DRUPAL-5 contributions/modules/mysite
Is that the wrong branch?
Thank you.
Comment #4
agentrickardYes.
The active stable branch is 5--2. The active development branch is HEAD.
Comment #5
bob.hinrichs commentedOk thanks, am using the 5--2 branch now.
Comment #6
agentrickardNote that 5--2 in cvs is slightly different from 5.x.2.11. See the CHANGELOG for notes.