A Database Error Occurred

Error Number: 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 'ASC' at line 1

SELECT * FROM `final_merit_list` where stream_id='1' and subject_id='7' and type='UR_PH' order by rank ASC

Filename: controllers/ERP/onlineadmission/Manage_final_merit_list.php

Line Number: 290