Hi,
I'm getting an error from an sql query that i can't seem to fix.
This error is in a mod i was porting from OSC, and up until recently this section of the port was complete, but since my host upgraded there php and MySQL version it is showing the error.
The error message reported by ZC is:
1054 Unknown column 'fg.products_id' in 'on clause'
in:
[select fg.*, p.products_id, pd.products_name from free_gifts fg, products p LEFT JOIN products_description pd ON (pd.products_id=fg.products_id) WHERE pd.language_id = '1' AND p.products_id = fg.products_id ORDER BY fg.threshold ASC]
The query being made is:
$gift = $db->Execute("select fg.*, p.products_id, pd.products_name from " . TABLE_CARROT . " fg, products p LEFT JOIN products_description pd ON (pd.products_id=fg.products_id)
WHERE pd.language_id = '" . (int)$_SESSION['languages_id'] . "' AND p.products_id = fg.products_id ORDER BY fg.threshold ASC");
while (!$gift->EOF) {
Site is running zen cart version 1.3.7
DB patch level 1.3.7
PHP version 5.1.2
SQL verion 5.0.18
Any suggestions on a fix for this?
Thanks in advance
Steve




