Galleries
De query kon niet uitgevoerd worden: The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is okay
SELECT item.itemId, item.titel, item.tekst
, bestand.bestandId, bestand.bestandsnaam
, menu_ouder.volgorde
FROM gallerij_item
LEFT JOIN item ON gallerij_item.itemId = item.itemId
LEFT JOIN item_bestand ON item.itemId = item_bestand.itemId
LEFT JOIN bestand ON item_bestand.bestandId = bestand.bestandId
LEFT JOIN menu_item ON item.itemId = menu_item.itemId
LEFT JOIN menu ON menu_item.menuId = menu.menuId
LEFT JOIN menu_ouder ON menu.menuId = menu_ouder.menuId
WHERE gallerij_item.gallerijId = 20
AND item_bestand.volgorde = 1
AND menu.publiceren = TRUE
OR bestand.bestandId IS NULL
ORDER BY menu_ouder.volgorde ASC