Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • BigHug Friend
    #132024

    Hello, please look here. When the module generate the list, one of the item is generated several times!

    The query that generates the list is:

    SELECT a.id, a.title, a.description AS text, '' AS created, '2' AS browsernav, s.id AS secid, a.id AS catid,
    CASE WHEN CHAR_LENGTH( a.alias )
    THEN CONCAT_WS( ':', a.id, a.alias )
    ELSE a.id
    END AS slug
    FROM jos_categories AS a
    INNER JOIN jos_sections AS s ON s.id = a.section
    LEFT JOIN jos_menu AS m ON m.componentid = a.id
    WHERE a.published =1
    AND s.published =1
    AND a.access <=0
    AND s.access <=0
    AND a.section
    IN ( 5 )
    ORDER BY a.name DESC
    LIMIT 0 , 20

    What’s wrong with this?

    Hieu Nguyen Admin
    #264741

    I’ve “patched” the query using DISTINCT after SELECT

    May the creator of the query fix it or confirm my fix, please?

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Hieu Nguyen 16 years, 3 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum