fastserv's note brings up a common mistake often only uncovered in non-english shops ... the language value in the query isn't sufficiently forced to proper datatype.
Code:
AND pd.language_id = ORDER BY p.products_id ASC
Note that the language_id is missing. This often occurs when the default language is being used and there hasn't been a need to explicitly set one.
It's usually best to at least use (int) before listing $_SESSION['language_id'] in the query parameters.
ie: [FONT="Courier New"](int)$_SESSION['language_id'][/FONT]
Bookmarks