It is necessary to make a sample like this:
SELECT id,title,data FROM #__table WHERE state=1 AND id NOT IN ('" . $arrIds2NAr . "') ORDER BY RAND() LIMIT 3 where $arrIds2NAr is 1,23,56,89,11,22,45
It turns out that there is a sampling limit. Everything seems to be done as it should. When an AJAX request is loaded, the data is loaded onto the page and a new ID comes up in NOT IN which DOES NOT HAVE to be included in the request, BUT THEY HAVE EVERYTHING. Ie, for example, in $arrIds2NAr there is ID = 25, but it still comes across in the sample. How to fix it?
id,title,item_dataFROM #__content WHEREstate= 1 AND id NOT IN ('41, 191,1,155,231,141,14,35,103,44,159,145,676 ') - Inverser