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 '1' at line 1

select (UNIX_TIMESTAMP(p.products_date_available) + ((24*60*60)* p.products_duration) ) as fecha_fin, ( (UNIX_TIMESTAMP(p.products_date_available) + ((24*60*60)* p.products_duration) ) - UNIX_TIMESTAMP(now()) ) as diferenciaTiempo, p.products_id, pd.products_periodo_validez, pd.products_name, p.products_discount , pd.products_description, pd.products_destacar, pd.products_conditions, p.products_duration ,p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_price_original, p.products_date_available, p.manufacturers_id , md.manufacturers_plano, md.manufacturers_description, m.* from products p left join manufacturers_info md on p.manufacturers_id = md.manufacturers_id left join manufacturers m on p.manufacturers_id = m.manufacturers_id, products_description pd, products_to_categories pto where pto.categories_id = "" and p.products_quantity > 0 and p.products_status = "1" and now() >= p.products_date_available and UNIX_TIMESTAMP() <= (UNIX_TIMESTAMP(p.products_date_available) + ((24*60*60)* p.products_duration) ) and pto.products_id = p.products_id and md.languages_id = '3' and pd.products_id = p.products_id and pd.language_id = '3' order by p.products_date_available desc limit ,1

[TEP STOP]