SQL=SELECT c.*, CASE WHEN CHAR_LENGTH(c.alias)!=0 THEN CONCAT_WS(':', c.id, c.alias) ELSE c.id END as slug FROM web_categories as c LEFT JOIN web_categories AS s ON (s.lft <= c.lft AND s.rgt >= c.rgt) OR (s.lft > c.lft AND s.rgt < c.rgt) LEFT JOIN (SELECT cat.id as id FROM web_categories AS cat JOIN web_categories AS parent ON cat.lft BETWEEN parent.lft AND parent.rgt WHERE parent.extension = 'com_content' AND parent.published != 1 GROUP BY cat.id) AS badcats ON badcats.id = c.id WHERE (c.extension='com_content' OR c.extension='system') AND c.access IN (1,1) AND c.published = 1 AND s.id=82 AND badcats.id is null GROUP BY c.id, c.asset_id, c.access, c.alias, c.checked_out, c.checked_out_time, c.created_time, c.created_user_id, c.description, c.extension, c.hits, c.language, c.level, c.lft, c.metadata, c.metadesc, c.metakey, c.modified_time, c.note, c.params, c.parent_id, c.path, c.published, c.rgt, c.title, c.modified_user_id ORDER BY c.lft

Get in Touch



Board No. : +91 11 43930000

Marketing: +91 11 43930004






Ascomp Technologies Pvt. Ltd.

1203, Padma Tower 1,
5, Rajendra Place,
New Delhi - 110 008