MySQL returned error

Error Description :
Error No : 1064
Description : 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 sort_order ASC' at line 1

SQL Query
SELECT `project_images`.* FROM `project_images` WHERE id!=0 AND project_id= ORDER BY sort_order ASC