Invalid Query : 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 ut desc limit 1' at line 1
select a.a_id,a.a_headline,a.a_summary,a.a_article,UNIX_TIMESTAMP(a.createdTime) AS ut, c.c_name,c.c_ancestry, UNIX_TIMESTAMP(idd.createdTime) AS iut,i.id_id from id_cp_article a left join id_cp_image i on a.a_id=i.a_id left join id_cp_image_data idd on i.id_id=idd.id_id left join id_cp_category c on a.c_id=c.c_id where a.a_published=1 and i.id_id!='' and a.c_id= order by ut desc limit 1