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 'ORDER BY rand() limit 4' at line 10
select p.products_id, pa.products_name, p.products_model, p.products_free_shipping, p.products_date_available, p.products_price, p.products_quantity, p.products_tax_class_id, p.products_image
from products_description pa
inner join products p on (p.products_id = pa.products_id)
inner join products_to_categories ptc on ptc.products_id=p.products_id
where language_id = 3
and products_status = 1
and p.products_id != 377808
and ptc.categories_id =
ORDER BY rand() limit 4