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 7


SELECT
f.path, f.name,f.type
FROM
files as f
LEFT JOIN boards_files as bf on (bf.id_file = f.id)
WHERE
bf.id_board = ORDER BY f.list DESC




;