Thanks for reply.
I thought I wrote the query correctly. But something is wrong here. The idea is that if an article is selected by logged in user - then the "add" button for that article, will disappear. But for some reason my query repeats the article as many times as any user has added it. However, the "add" button on one of them disappears. Of course, I only want to show the same article once, not several. I have tried to change the join statement on "bucMylist", but without success.
Here is my query:
<?php
$WADAbuckets = new WA_MySQLi_RS("WADAbuckets",$bucketListHub,0);
$WADAbuckets->setQuery("SELECT bucBuckets.buc_id, bucBuckets.buc_name, bucBuckets.buc_description, bucBuckets.buc_minAge, bucBuckets.buc_maxAge, bucCategories_translation.cattra_name AS bucCategories_translation_cattra_name, bucBudget.bud_name AS bucBudget_bud_name, bucCountry_translation.coutra_name AS bucCountry_translation_coutra_name, bucCity.cit_name AS bucCity_cit_name, bucDifficulty.dif_ID AS bucDifficulty_dif_ID, bucDifficulty.dif_name AS bucDifficulty_dif_name, bucBucketCollections.*, bucCollections.col_name, bucPercitipatingDegree.per_name, bucImages.ima_link, bucMylist.* FROM bucBuckets LEFT OUTER JOIN bucCategories_translation ON bucBuckets.buc_cattraID = bucCategories_translation.cattra_id LEFT OUTER JOIN bucBudget ON bucBuckets.buc_budID = bucBudget.bud_id LEFT OUTER JOIN bucCountry_translation ON bucBuckets.buc_couCode = bucCountry_translation.coutra_couCode LEFT OUTER JOIN bucCity ON bucBuckets.buc_citID = bucCity.cit_id LEFT OUTER JOIN bucDifficulty ON bucBuckets.buc_difID = bucDifficulty.dif_ID LEFT OUTER JOIN bucBucketCollections ON bucBuckets.buc_id = bucBucketCollections.collectionBucketBucket_ID LEFT OUTER JOIN bucCollections ON bucBucketCollections.collectionBucketCollection_ID = bucCollections.col_id LEFT OUTER JOIN bucPercitipatingDegree ON bucBuckets.buc_perID = bucPercitipatingDegree.per_ID LEFT OUTER JOIN bucImages ON bucBuckets.buc_id = bucImages.ima_bucID LEFT OUTER JOIN bucMylist ON bucBuckets.buc_id = bucMylist.myl_bucID ORDER BY bucBuckets.buc_name ASC");
$WADAbuckets->execute();
?>