1064 - 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 'MAX_DISPLAY_GET_1_FREE_PRODUCTS' at line 1
select distinct 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 products_to_categories p2c using(products_id) left join categories c using(categories_id) left join get_1_free f on p.products_id = f.products_id left join specials s on p.products_id = s.products_id where c.parent_id = '19' and p.products_status = '1' and f.status = '1' order by rand() DESC limit MAX_DISPLAY_GET_1_FREE_PRODUCTS