John,
Please try the steps listed in order from this post: mdlDB_fetchRowByID and let us know if that helps resolve the issue. If not, here is another search for a couple other threads ( 8 ) related to calling mdlDB_fetchRowByID and needing to enable…