just altered the $link section to enable SEO urls. Works for me but remember always backup.

before:
$link = HTTP_SERVER . DIR_WS_CATALOG;
$link .= "product_info.php?products_id=" . $next_product['products_id'];
after:
//$link = HTTP_SERVER . DIR_WS_CATALOG;
$link = tep_href_link(FILENAME_PRODUCT_INFO, "products_id=" . $next_product['products_id'], 'NONSSL', false);

Cheers: Shane

More...