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

select p.products_id, p.products_image, p.products_price, p.products_tax_class_id from products_to_categories ptc, products p WHERE ptc.categories_id = '' AND p.products_status = '1' and products_restricted != 1 AND p.products_id = ptc.products_id AND p.products_id != order by rand() limit 16

[TEP STOP]