| 3.0.1 Another mysql error
We got this error several times now:
An error was encountered during execution of the query:
SELECT id,bigimage,cat,userid,approved FROM cp_products WHERE cat= AND approved=1 ORDER BY disporder,date DESC
The query returned with an errorcode of:
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 'AND approved=1 ORDER BY disporder,date DESC' at line 1
I wasn't able to track it down yet, but this type of query is used in showfeature.php, showphoto.php and showproduct.php. Seems that $cat isn't checked before used in the query.
|