It seams to me that there is no reason to use db_rewrite_sql on your selects.
And you should use uppercase for SQL commands otherwise the code http://api.drupal.org/?q=api/function/db_rewrite_sql/HEAD will not work correctly.

I am using internationalization modules and it is changing your select is something like:

select linked_seo from seo_checklist where id=1 LEFT JOIN i18n_node i18n ON n.nid = i18n.nid WHERE (i18n.language ='sk' OR i18n.language ='sk' OR i18n.language ='' OR i18n.language IS NULL)

I removed all calls to db_rewrite_sql and it seams to work.

sincerely,
Martin

Comments

ben finklea’s picture

Status: Active » Closed (fixed)

We rewrote the module without cb_rewrite_sql. Try it and let me know: http://drupal.org/files/issues/SEOChecklist-5.2.zip