SELECT a.uid,a.con, a.time, b.user FROM topb2b_comments_desc a RIGHT JOIN topb2b_all_user b ON (a.uid = b.userid) where a.touid= order by a.time descYou 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.time desc' at line 2