Winkelmand
array(10) {
  [0]=>
  array(6) {
    ["file"]=>
    string(90) "/var/www/vhosts/aw2021.factiftest.nl/httpdocs/webshop/services/service.DatabaseService.php"
    ["line"]=>
    int(138)
    ["function"]=>
    string(14) "_InternalQuery"
    ["class"]=>
    string(15) "DatabaseService"
    ["type"]=>
    string(2) "::"
    ["args"]=>
    array(1) {
      [0]=>
      string(370) "SELECT id FROM art_Content WHERE ouder =  and toon = 1 AND (art_Content.publicatiedatum='' OR art_Content.publicatiedatum IS NULL OR art_Content.publicatiedatum<='20241121')
        AND (art_Content.expiratiedatum='' OR art_Content.expiratiedatum IS NULL OR art_Content.expiratiedatum>='20241121')
        AND (art_Content.thema_DEFAULT='1' OR art_Content.thema_uni='1')"
    }
  }
  [1]=>
  array(6) {
    ["file"]=>
    string(82) "/var/www/vhosts/aw2021.factiftest.nl/httpdocs/webshop/services/service.Content.php"
    ["line"]=>
    int(451)
    ["function"]=>
    string(10) "QueryCount"
    ["class"]=>
    string(15) "DatabaseService"
    ["type"]=>
    string(2) "::"
    ["args"]=>
    array(1) {
      [0]=>
      string(370) "SELECT id FROM art_Content WHERE ouder =  and toon = 1 AND (art_Content.publicatiedatum='' OR art_Content.publicatiedatum IS NULL OR art_Content.publicatiedatum<='20241121')
        AND (art_Content.expiratiedatum='' OR art_Content.expiratiedatum IS NULL OR art_Content.expiratiedatum>='20241121')
        AND (art_Content.thema_DEFAULT='1' OR art_Content.thema_uni='1')"
    }
  }
  [2]=>
  array(6) {
    ["file"]=>
    string(86) "/var/www/vhosts/aw2021.factiftest.nl/httpdocs/webshop/classes/class.KlantenService.php"
    ["line"]=>
    int(16)
    ["function"]=>
    string(21) "KinderenBoomMenuNieuw"
    ["class"]=>
    string(7) "Content"
    ["type"]=>
    string(2) "::"
    ["args"]=>
    array(2) {
      [0]=>
      NULL
      [1]=>
      string(1) "0"
    }
  }
  [3]=>
  array(6) {
    ["file"]=>
    string(91) "/var/www/vhosts/aw2021.factiftest.nl/httpdocs/webshop/templates/template.KlantenService.php"
    ["line"]=>
    int(1)
    ["function"]=>
    string(27) "MaakOverzichtKlantenService"
    ["class"]=>
    string(14) "KlantenService"
    ["type"]=>
    string(2) "::"
    ["args"]=>
    array(0) {
    }
  }
  [4]=>
  array(4) {
    ["file"]=>
    string(90) "/var/www/vhosts/aw2021.factiftest.nl/httpdocs/webshop/services/service.TemplateBuilder.php"
    ["line"]=>
    int(482)
    ["args"]=>
    array(1) {
      [0]=>
      string(91) "/var/www/vhosts/aw2021.factiftest.nl/httpdocs/webshop/templates/template.KlantenService.php"
    }
    ["function"]=>
    string(7) "require"
  }
  [5]=>
  array(7) {
    ["file"]=>
    string(90) "/var/www/vhosts/aw2021.factiftest.nl/httpdocs/webshop/services/service.TemplateBuilder.php"
    ["line"]=>
    int(47)
    ["function"]=>
    string(13) "_KiesTemplate"
    ["class"]=>
    string(15) "TemplateBuilder"
    ["object"]=>
    object(TemplateBuilder)#7 (1) {
      ["_TemplateNaamSanitized"]=>
      string(0) ""
    }
    ["type"]=>
    string(2) "->"
    ["args"]=>
    array(1) {
      [0]=>
      string(5) "43009"
    }
  }
  [6]=>
  array(7) {
    ["file"]=>
    string(90) "/var/www/vhosts/aw2021.factiftest.nl/httpdocs/webshop/services/service.TemplateBuilder.php"
    ["line"]=>
    int(30)
    ["function"]=>
    string(9) "_MakePage"
    ["class"]=>
    string(15) "TemplateBuilder"
    ["object"]=>
    object(TemplateBuilder)#7 (1) {
      ["_TemplateNaamSanitized"]=>
      string(0) ""
    }
    ["type"]=>
    string(2) "->"
    ["args"]=>
    array(0) {
    }
  }
  [7]=>
  array(7) {
    ["file"]=>
    string(85) "/var/www/vhosts/aw2021.factiftest.nl/httpdocs/webshop/classes/class.BuildTemplate.php"
    ["line"]=>
    int(15)
    ["function"]=>
    string(11) "__construct"
    ["class"]=>
    string(15) "TemplateBuilder"
    ["object"]=>
    object(TemplateBuilder)#7 (1) {
      ["_TemplateNaamSanitized"]=>
      string(0) ""
    }
    ["type"]=>
    string(2) "->"
    ["args"]=>
    array(1) {
      [0]=>
      string(0) ""
    }
  }
  [8]=>
  array(7) {
    ["file"]=>
    string(85) "/var/www/vhosts/aw2021.factiftest.nl/httpdocs/webshop/classes/class.BuildTemplate.php"
    ["line"]=>
    int(11)
    ["function"]=>
    string(13) "_ToonTemplate"
    ["class"]=>
    string(13) "BuildTemplate"
    ["object"]=>
    object(BuildTemplate)#6 (1) {
      ["_TemplateNaam"]=>
      NULL
    }
    ["type"]=>
    string(2) "->"
    ["args"]=>
    array(1) {
      [0]=>
      string(0) ""
    }
  }
  [9]=>
  array(7) {
    ["file"]=>
    string(63) "/var/www/vhosts/aw2021.factiftest.nl/httpdocs/webshop/index.php"
    ["line"]=>
    int(34)
    ["function"]=>
    string(11) "__construct"
    ["class"]=>
    string(13) "BuildTemplate"
    ["object"]=>
    object(BuildTemplate)#6 (1) {
      ["_TemplateNaam"]=>
      NULL
    }
    ["type"]=>
    string(2) "->"
    ["args"]=>
    array(1) {
      [0]=>
      NULL
    }
  }
}

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'and toon = 1 AND (art_Content.publicatiedatum='' OR art_Content.publicatiedat...' at line 1 SQL Query: SELECT id FROM art_Content WHERE ouder = and toon = 1 AND (art_Content.publicatiedatum='' OR art_Content.publicatiedatum IS NULL OR art_Content.publicatiedatum<='20241121') AND (art_Content.expiratiedatum='' OR art_Content.expiratiedatum IS NULL OR art_Content.expiratiedatum>='20241121') AND (art_Content.thema_DEFAULT='1' OR art_Content.thema_uni='1')