Data Query not returning results

Hi I am hoping someone can help me I am trying to populate a table with the results from a data query however there are no results returned yet there should be and I cannot see what the issue is.

The MembersLevelLink table contains a column that references one to many Photographs. The Photographs table has a reference to the Events table see the data below

The events data set is filtered to only return the event with the title Member Gallery

$w.onReady( function () {
// Write your JavaScript here
$w( ‘#eventsDS’ ).onReady(() => {
$w( ‘#photographsDS’ ).onReady(() => {
createTableColumns()
getPhotographs();
});
});

// To select an element by ID use: $w(“#elementID”)

// Click “Preview” to run your code
});

function createTableColumns()
{
$w( ‘#membersTable’ ).columns = [
{
“id”:“col1” ,
“dataPath” : “title” ,
“label” : “Author” ,
“type” : “string”
},
{
“id”:“col2” ,
“dataPath” : “_id” ,
“label” : “Id” ,
“type” : “string” ,
“visible” : false
}
];
let eventId = $w( ‘#eventsDS’ ).getCurrentItem()._id;
wixData.query( “MemberLevelLink” )
.include( “Photographs” )
.eq( “event” ,eventId)
.distinct( “MemberLevelLink.title” )
.then((results => {
console.log(eventId)
console.log(results.length + " results" )
if (results.items.length > 0 )
{
$w( ‘#membersTable’ ).rows = results.items;
}
}));

}

The console messages when the page is run show the correct ID for the event (Members Gallery) yet no rows are returned. I cannot see why this query is failing can someone see the issue?