Notice: Undefined offset: 2811 in /var/www/ on line 1013

Notice: Trying to access array offset on value of type null in /var/www/ on line 217
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '664,3622,2448,4806,2775,4582,677,844,4219,5221,5594,6317,1014,4244,3477,2213) OR' at line 1