Informatii generale despre statiunea

Km partie:  

Error executing query:
SELECT DISTINCT as id, fs.name_ro as name_ro FROM statiuni_facilitati as sf LEFT JOIN statiuni as s ON LEFT JOIN facilitati_statiuni as fs ON WHERE ORDER BY fs.rank,
Error message: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY fs.rank,' at line 8