Closed (fixed)
Project:
Teaser block
Version:
5.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
8 Aug 2008 at 19:51 UTC
Updated:
22 Aug 2008 at 20:04 UTC
In line number 163 of the module file (teaser_block.module), you must add brackets in the node words.
$result = db_query(db_rewrite_sql('SELECT n.nid, n.title FROM {node} n '. $types .' ORDER BY n.title'));
instead of:
$result = db_query(db_rewrite_sql('SELECT n.nid, n.title FROM node n '. $types .' ORDER BY n.title'));
It's important to make you request match the right table inthe right database. Especially if you use table prefix in your db.
Comments
Comment #1
sunThanks, I've committed a patch to fix this in all branches.
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.