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 '1267,749,4219,5221,2324,3214,2262,1583,105,364,1530,751,684,441,382,2188,2540,55' at line 1