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 'order by f.order asc,f.id asc' at line 7

SELECT f.*,fd.id data_id,fd.fields_id,fd.content_live,fd.content_draft,fd.row_id,f.max_chars,f.type_id FROM fields f left join field_data fd on f.id=fd.fields_id where f.content_id=3 and f.section_id=3 and fd.row_id= order by f.order asc,f.id asc

Filename: /var/www/html/models/backend/content_model.php

Line Number: 1158