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 f.list desc' at line 9


SELECT
f.path, f.name
FROM
files as f
LEFT JOIN eshop_products_files as epf on (epf.id_file = f.id)
WHERE
epf.id_eshop_product = 73 AND f.id!=

ORDER BY f.list desc



;