SELECT a.*,(select con_cat_name from bb_content_category where con_cat_id = a.con_cat_id ) as con_cat_name , b.* from bb_content a join bb_con_news b on a.con_id = b.con_id where a.con_state = 1 and a.menu_id = order by a.con_up_date desc limit 0,5You 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 a.con_up_date desc limit 0,5' at line 2