Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

featured products sql error


Recommended Posts

I get this error message - can you tell mje where to start?

1064 - You have an error in your SQL syntax near 'MAX_DISPLAY_FEATURED_PRODUCTS' at line 1


select p.products_id, p.products_image, p.products_tax_class_id, s.status as specstat, s.specials_new_products_price, p.products_price from products p left join specials s on p.products_id = s.products_id left join featured f on p.products_id = f.products_id where p.products_status = '1' and f.status = '1' order by rand() DESC limit MAX_DISPLAY_FEATURED_PRODUCTS



Link to comment
Share on other sites

You need to set MAX_DISPLAY_FEATURED_PRODUCTS to a numeric value, e.g. 9. I'm not sure if that contribution does so in the configuration table or with a define. Perhaps something that got overlooked during the install?




Link to comment
Share on other sites


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

  • Create New...