Syntax error, unexpected token AND, near to ' KreuzfahrtenDetails.startdatum > '1600480910' ORDER BY RAND() LIMIT :APL0:', when parsing: SELECT [Multiple\Frontend\Models\Kreuzfahrten].* FROM [Multiple\Frontend\Models\Kreuzfahrten] LEFT JOIN [Multiple\Frontend\Models\KreuzfahrtenDetails] AS [KreuzfahrtenDetails] ON KreuzfahrtenDetails.kreuzfahrten_id = [Multiple\Frontend\Models\Kreuzfahrten].id WHERE [Multiple\Frontend\Models\Kreuzfahrten].id != AND KreuzfahrtenDetails.startdatum > '1600480910' ORDER BY RAND() LIMIT :APL0: (391)