How to find bad PHP node that makes search_cron fail? I can't run cron, manually or automatically. I installed Cron Debug module, checked all modules, and found out that the Search module makes cron stuck. When I disable it, cron is working.

I suppose the reason is one of my nodes has bad PHP code in it.
I googled for "search_cron errors", and found a solution in Drupal.org
I tried it by editing node.module, but I got this error:


  Fatal error: Call to undefined function db_fetch_object() in /home/mysite/public_html/modules/node/node.module on line 2616


Can you propose me a solution on how I can find the errorenous PHP code in nodes?
I am using Drupal 7.12.
i was facing this issue after upgrading a big application from 6 to 7.This is what I did. From the database run this query 

SELECT n.nid FROM node n LEFT JOIN search_dataset d ON d.type = 'node' AND d.sid = 
n.nid WHERE   
d.sid IS NULL OR d.reindex &lt;&gt; 0 ORDER BY d.reindex ASC, n.nid asc


This will give you the last node that is giving you issues and has refused to be re-indexed. 
From there you can do what you want with that node. For my case I realized it was a whole content type that was not displaying well. I had to resave one of the fields to allow this content type to display.