Sql query error
SQL query SELECT DISTINCT categoryID FROM `S_stockcats` WHERE parentID = AND cumulative_prod_count > 0
Gave the following error :
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 cumulative_prod_count > 0' at line 1
File : /var/www/vhosts/www.fourleafclothing.co.uk/httpdocs/sm_red/includes/shop/product_display/functions_product_display.inc.php
Line : 60

File : /var/www/vhosts/www.fourleafclothing.co.uk/httpdocs/traderpro/default_cat_display.htm
Line : 103

File : /var/www/vhosts/www.fourleafclothing.co.uk/httpdocs/traderpro/index.php
Line : 43
RELATED CATEGORIES
FOUR YEAR STRONG
 
MC5
 
RORY GALLAGHER
 
GHETTOBLASTER