Could not proccess query:
SELECT a.idarticles, a.title,a.text,g.idgroups FROM articles a left join related_objects_type rot on a.object_type_id=rot.idrelated_objects_type left join permissions pr on a.permission_id=pr.idpermissions left join groups g on g.idgroups=pr.group_id where (rot.en_name='contents' and a.is_visible='Y') and a.idarticles= order by start_date
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 start_date' at line 6