
Originally Posted by
TinaS
Clyde I have been scouring this thread and either I am blind or I have overlooked the answer to this.
I have a clean install of this mod on a 1.3.7 cart and all appears fine until I click on a link category and then I get this :
1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
in:
[select count(l.links_id) as total from links_description ld, links l, links_to_link_categories l2lc where l.links_status = '2' and l.links_id = l2lc.links_id and ld.links_id = l2lc.links_id and ld.language_id = '1' and l2lc.link_categories_id = '6'order by ]
You can see it in action here :
http://www.leatherrider.com/index.php?main_page=links
Click a category and that error pops.
Is there a fix for this ?
Thanks In Advance!
Tina,
can you open includes/templates/YOUR_TEMPLATE/templates/tpl_links_default.php
replace lines 110 and 111 (these are the lines in my copy of the file)
with the following:
Code:
// We show them all
$listing_sql = "select " . $select_column_list . " l.links_id from " . TABLE_LINKS_DESCRIPTION . " ld, " . TABLE_LINKS . " l, " . TABLE_LINKS_TO_LINK_CATEGORIES . " l2lc where l.links_status = '2' and l.links_id = l2lc.links_id and ld.links_id = l2lc.links_id and ld.language_id = '" . (int)$_SESSION['languages_id'] . "' and l2lc.link_categories_id = '" . (int)$current_category_id . "'" . "order by $sortorder";
See if that fixes the problem
Bookmarks