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

sun’s picture

Thanks, I've committed a patch to fix this in all branches.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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