Hallo,
ich habe ein Problem mit der Select-Abfrage.
$textDB = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
'tx_thtextpdf_category.mail_recipient AS mail,
tx_thtextpdf_catalog.art_nr AS art_nr',
'tx_thtextpdf_category , tx_thtextpdf_catalog',
'tx_thtextpdf_category.uid = tx_thtextpdf_catalog.category_id AND tx_thtextpdf_catalog.uid IN (3,4,5) ',
'mail',
'',
''
);
debug(mysql_num_rows($textDB));
Die Datensätze 3,4,5 existieren, aber die Abfrage liefert nur einen Datensatz (debug-Ausgabe).
Kann T3 so kein 'WHERE xyz IN (3,4,5)'?
PHPMYADMIN gibt mir mit der Abfrage drei Datensätze aus:
SELECT tx_thtextpdf_category.mail_recipient AS mail, tx_thtextpdf_catalog.art_nr AS art_nr
FROM tx_thtextpdf_category, tx_thtextpdf_catalog
WHERE tx_thtextpdf_category.uid = tx_thtextpdf_catalog.category_id
AND tx_thtextpdf_catalog.uid
IN ( 3, 4, 5 )