Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.