Abfrage COUNT PRODUKT ist fehlgeschlagen!!!SELECT w.id FROM wein w LEFT OUTER JOIN wein_zusatz wz ON (wz.weinid = w.id) LEFT OUTER JOIN weingut wg ON (wg.id = w.weingut_id) WHERE (w.aktiv != 'ja' OR w.id = '2404' OR w.id = '3718' OR w.id = '1672' OR w.weingut_id = '230' OR w.weingut_id = '231' OR w.weingut_id = '232' OR w.weingut_id = '233' OR w.weingut_id = '170') AND w.lager != '' AND w.lager > '0' AND w.preis_chf > 0 AND ((w.verkostungspakete != 'y' AND (w.inhalt = '0,375' OR w.inhalt = '0,5' OR w.inhalt = '0,75' OR w.inhalt = '1,0' OR w.inhalt = '1,5')) OR (w.verkostungspakete = 'y')) AND w.name = 'Blaufr´┐Ż´┐Żnkisch' ORDER BY verkostungspakete;