I have a table "knowledgemodel" [enter image description here][1]
My Query
SELECT
title, id, @parent:=parent_id as prnt
FROM
(SELECT @parent:=3 ) a
JOIN
(SELECT * FROM knowledgemodel ORDER BY id DESC) b
where
@WHERE=id
IN MYsql Server: 127.0.0.1 via TCP/IP Server type: MySQL Server version: 5.6.16 - MySQL Community Server (GPL) Protocol version: 10 Above Query was working fine.
But on MariaDB im getting only one record
Any help ??