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 'IN ('1', '5')
order by FIELD(p.manufacturers_id, '9') DESC, p.products_da' at line 10
in:
[select distinct p.products_id, p.products_model, listing_description,
p.products_ordered, m.manufacturers_name,
manufacturers_image, p.products_image,
products_name, p.products_price, cartridge_type_id,
old_seo_url, old_seo_url_simple, products_availability, p.products_date_added, p.products_best_seller,
image_thumb_width, image_thumb_height, p.master_categories_id
from manufacturers m JOIN products p ON p.manufacturers_id = m.manufacturers_id JOIN products_description pd on pd.products_id=p.products_id
JOIN products_to_categories ptc ON p.products_id=ptc.products_id AND ptc.categories_id IN (71546,83180)
where
p.products_status = '1' and products_availability = IN ('1', '5')
order by FIELD(p.manufacturers_id, '9') DESC, p.products_date_added DESC
limit 8]