You 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 n.tanggalRecipe DESC' at line 5-SELECT n.nomorRecipe, nt.judulRecipeTr, nt.isiPendekRecipeTr, DATE_FORMAT(n.tanggalRecipe, '%d %b %Y') AS tanggalRecipe, n.namaPembuat, n.pathVideo, nt.isiRecipeTr FROM t_recipe n INNER JOIN t_recipe_tr nt ON n.nomorRecipe = nt.nomorRecipe WHERE n.statusRecipe = 1 AND nt.statusRecipeTr = 1 AND nt.nomorBahasa = 1 AND n.nomorRecipe = ORDER BY n.tanggalRecipe DESC