array(3) { [0]=> string(5) "42000" [1]=> int(1064) [2]=> string(226) "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 'IN (p1.id, p2.id, p3' at line 9" }
string(540) "ERROR: QUERY: 
                SELECT
                DISTINCT
                  p1.id AS id_category,
                  p1.title
                FROM category p1
                  LEFT JOIN category p2 ON p2.id_parent = p1.id
                  LEFT JOIN category p3 ON p3.id_parent = p2.id
                  LEFT JOIN category p4 ON p4.id_parent = p3.id
                WHERE  IN (p1.id,
                             p2.id,
                             p3.id,
                             p4.id)
                AND p1.id != 0"