Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

MySQL 5 Upgrade guide?


tparker

Recommended Posts

I've read various references to upgrades for MySQL 5 users (either a guide, or patches) but haven't really found anything short of bits and pieces specific to certain files.

 

Where can I find the resource for this?

 

Thanks,

 

Terence

 

 

(Specifically, i've fixed a few of the queries but now have a problem with this one inside split_page_results.php :

 

SELECT count( DISTINCT p.products_id ) AS total

FROM products p

LEFT JOIN manufacturers m

USING ( manufacturers_id ) , products_description pd

LEFT JOIN specials s ON p.products_id = s.products_id, categories c, products_to_categories p2c

WHERE p.products_status = '1'

AND p.products_id = pd.products_id

AND pd.language_id = '5'

AND p.products_id = p2c.products_id

AND p2c.categories_id = c.categories_id

AND (

p.products_age_8_9 = '1'

)

 

MySQL said:

#1054 - Unknown column 'p.products_id' in 'on clause'

Link to comment
Share on other sites

Try this:

 

SELECT count( DISTINCT p.products_id ) AS total
FROM products p , products_description pd
LEFT JOIN manufacturers m
USING ( manufacturers_id ) 
LEFT JOIN specials s ON p.products_id = s.products_id, categories c, products_to_categories p2c
WHERE p.products_status = '1'
AND p.products_id = pd.products_id
AND pd.language_id = '5'
AND p.products_id = p2c.products_id
AND p2c.categories_id = c.categories_id
AND (
p.products_age_8_9 = '1'
)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...