was configured

The site was working and now it is not.
The problem
I deleted the original index that was configured to make the right connections.
What code do I have to change

Here is line 58
Error I am getting

if ($category_depth == ‘nested’) {
$category_query = tep_db_query(“select cd.categories_name, c.categories_image from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '” . (int)$current_category_id . “’ and cd.categories_id = '” . (int)$current_category_id . “’ and cd.language_id = '” . (int)$languages_id . “’”);
$category = tep_db_fetch_array($category_query);

Actually, it would be more helpful to have a couple of lines before and after as well. Also, exactly what does that error say? Lot easier for us troubleshoot the problem if we know what error you are getting.