php – WordPress sql not working with $wp->get_results

I hope you all the guys are great I am trying to get the count of registered users between particular times but with in user ID condition but in my case, the problem is there are 3000 users with my in condition so anyone can tell me how I deal with it. below is my SQL query

    global $wpdb;
    $results = $wpdb->get_results("Select count(ID) FROM wp_users WHERE ID IN (9878,16027,2945,5794,25231,25228,8717,4237,11824,5684,1474,2203,1310,1508,2890,12260,10050,2301,18726,19656,19320,19611,28762,12917,9620,1491,4130,11257,13202,1834,2151,16464,1339,9752,1444,1827,11875,21576,11499,13260,13257,28012,10445,13502,33142,11505,1112,25648,8171,1407,12944,1714,1711,1202,1984,18477,28759,31816,14608,12311,13386,8917,1405,4359,16416,4183,19725,18753,9019,18252,14205,18141,26989,14593,15453,2792,16209,22381,31744,10964,30778,14358,14504,14537,24731,10130,5248,30637,27079,10419,21210,839,5411,1116,19530,1100,3138,24380,1220,1825,16000,1104,14332,2452,2861,3004,3002,1452,4297,8801,4810,16129,10123,16170,12839,1659,18447,4921,8306,4521,31172,10705,15558,5324,1950,9364,14633,2938,1394,1458,1085,8324,1404,1430,11673,2049,14284,11119,12240,25270,25585,15597,30487,1191,27115,11457,2425,11911,15492,11857,2061,2680,2713,3533,25609,8995,26932,10096,2734,10787,3199,29824,15561,2927,31792,2879,11685,1092,13107,28048,2693,29893,10832,14422,5635,1154,2849,8698,24452,10928,2265,1259,10036,9931,9809,5815,12440,9047,1948,11318,2740,28732,1944,27307,29890,15306,26953,13874,29668,16270,4913,10424,1164,16572,22240,27682,35549,30376,10868,10045,16518,23209,15249,2773,8594,1263,30700,9483,8307,1420,12644,15150,28684,14144,16581,23224,4711,13988,16891,13289,8938,18516,17952,25552,24119,15652,10777,4100,2942,33383,15177,28591,14108,16036,4776,5656,19308,2014,8604,8275,7736,29383,13562,33160,8734,29962,32341,1086,24107,14587,5662,13754,24164,1477,1743,1969,3934,20568,4692,2524,1087,1325,1241,16378,16075,18036,2067,1406,8366,10009,1635,21600,26836,27040,5320,5653,25798,19554,11336,11245,1235,12327,9125,24740,27145,2421,12759,7720,1137,18195,28699,18033,15564,2209,15991,8540,2142,5803,15189,14455,27688,3692,31795,31897,11590,7108,2308,2983,16063,14253,26857,18648,10972,3983,10894,13563,9995,4363,15892,2001,3025,1375,2726,13482,8798,13440,25519,2179,28402,1186,4689,1520,17991,13277,27847,9397,25078,28417,9277,10852,14400,13626,14404,8168,11015,1080,2565,2921,26851,5642,2392,26983,30853,12572,1918,2876,25687,14618,8740,9039,9264,52,966,24506,8490,28615,19533,13475,9009,9328,4051,10204,29881,1208,14456,16900,13232,11464,11886,18651,19734,10846,10416,27451,2526,4351,14218,32938,7724,1560,1936,12698,1572,2668,2728,2690,5734,1298,9530,24176,4684,18381,14048,2929,4299,27157,13635,27934,9288,4168,2095,14172,1915,32881,1455,5386,16452,17150,16802,11893,9749,24817,12308,1395,1347,3104,15081,5273,1481,1386,9048,1124,25618,29710,12329,18636,24359,1297,13245,1398,2154,18294,1419,1069,9029,1293,23613,28606,10293,1597,10433,1529,24515,14271,9985,4296,1287,1507,10425,2211,12749,10488,8818,5029,24275,1935,1328,13625,9706,22396,23610,1308,8175,10799,28678,25135,2163,13605,19278,1228,11167,2116,27658,4767,1167,14530,3043,23787,2834,5387,4647,9527,7712,14519,2843,8493,1983,4813,13371,1317,11754,21760,1585,2160,4822,2665,10029,8630,2984,12566,4750,14168,25672,27097,4874,1665,5089,4201,14617,1319,8561,9306,11378,11562,14350,13778,30968,3127,3118,32806,6701,12656,2124,9439,4927,1302,14305,13532,1253,31876,1494,23448,8649,1467,25921,4306,4305,2684,1443,9331,1926,5765,27670,13430,1163,2536,9215,5873,2503,14147,1471,2810,7738,13592,10599,4915,2341,8741,2125,10255,7570,22519,25747,1473,2550,12746,1716,21982,2146,31831,10126,3113,28711,1993,10597,1234,9487,2241,5590,9201,1285,35474,2738,2176,1122,14461,2629,28693,13118,2214,10919,1389,1390,11865,8292,4294,9195,2544,1672,1125,11725,30367,31450,11416,24799,1282,8480,19311,16787,1222,1762,13530,9301,28594,8935,5633,2999,11435,8989,4293,2187,11444,21516,1412,4567,9236,12390,2842,8888,11487,4867,14130,19503,1495,14443,5405,8607,2569,1486,4948,2788,11554,14775,13631,10252,29581,5314,7750,15321,13658,10421,16142,15465,22231,31447,12458,1535,1905,8483,13473,19323,15456,18318,29377,1264,30013,10955,23182,16227,29758,23748,5251,3091,4683,9965,1356,1860,8597,1746,10849,11158,2959,13148,25513,32173,4966,2274,9920,24398,2121,2722,29992,10556,3144,25252,9005,1131,2262,1732,8981,10629,2920,2436,17268,15946,2753,2819,1306,11188,9221,1449,18228,15826,1456,2302,5816,4807,19431,1482,10891,2941,4323,5708,9429,24479,1267,20988,2987,3079,13487,2361,14614,8737,10237,27259,30496,2076,2128,24383,18135,22585,1108,8208,3101,1432,13844,2686,25339,25276,1903,2013,8513,2631,843,4371,11847,2741,4699,14238,1147,35552,4311,8528,1378,17973,4318,2314,2310,3061,21090,10284,13910,8927,2645,4876,8103,31750,23442,1212,30373,2107,2851,4666,8610,3085,1891,5791,12638,31034,2281,14632,5819,1382,9949,11538,11608,10263,28549,4773,5216,14242,3028,15793,14266,2071,1923,2903,10262,15922,1441,14022,25483,13839,12911,1863,19620,11393,14272,1360,23484,30781,7718,2032,13226,5071,9865,1401,1246,2389,9084,2893,2044,10448,16248,9186,12452,16793,1138,13419,8098,10008,4335,1468,1990,11896,4380,8890,10211,2950,5882,9294,1690,2948,2515,17865,2485,4187,1247,1229,30847,24236,26023,32146,14636,27316,1956,1120,3124,1243,29458,14473,5345,1578,4223,26746,1134,1462,2953,1978,4886,15940,18030,24713,31804,3068,8360,2260,2218,15123,3110,18045,2896,2404,18360,11123,1078,1345,10150,13271,11142,1408,10023,4828,9988,30938,3088,1463,11387,23751,33172,14507,15498,14713,15838,28588,10930,5821,9141,2194,10805,1708,4771,1684,27454,17964,8195,2644,35558,3065,3037,23880,15375,1818,5381,10850,1301,8777,11460,11398,23406,25459,1489,9041,2996,1902,1809,27118,11583,13134,12899,29851,27445,26848,23796,18486,8722,28576,8725,2401,11788,9146,2259,5876,4393,4392,1292,10761,2659,1262,29821,2855,1311,2035,1511,17358,2707,9174,4288,10178,18507,9283,2731,27742,23868,13262,9137,9590,2305,8699,28366,27427,18861,28528,2242,2442,9164,25564,9330,14027,5341,14136,15895,5110,26752,5038,2977,4668,23958,24224,14450,31091,30457,8986,27799,1470,10614,5818,4833,25768,3115,1726,2771,22288,8689,10039,13383,1286,1400,1143,1225,1894,1397,5804,2774,4836,11227,11827,8423,30057,2785,4988,10234,9105,28714,14620,1422,1126,21198,25762,1081,8764,1299,23045,5636,8669,1566,1380,15441,18567,24716,15685,1492,14569,12449,1195,25273,23535,24191,1387,1079,25909,14226,9309,1123,9986,23691,14230,1749,11134,10249,19740,1275,16811,11866,14190,1725,9179,1995,13397,1921,8444,10304,1115,1158,28309,2182,29440,21327,8451,28567,18738,12420,9303,11596,35555,15609,8133,11718,2196,14577,9022,10874,25093,10467,1579,15655,10063,15573,4387,30601,19905,1383,2268,9242,5710,14521,15874,10136,36315,1933,2833,1752,1305,11306,1204,10978,1770,8526,1822,16111,1070,4374,20553,10317,9707,24419,16251,2193,10627,16197,8115,1867,15507,1272,24440,1499,2839,10792,8502,1151,2322,18150,10949,1139,1418,3017,2331,2371,35390,19545,18702,10305,5123,10017,1113,8486,2487,26977,14655,14379,11344,8600,2110,2768,12413,11572,16533,2716,9334,1077,9731,2779,29518,16200,1409,12506,3157,21174,27745,21519,9863,2918,11139,1897,915,925,970,965,1240,929,2169,30034,1316,8442,13512,31214,27334,21021,17640,2052,10047,2602,11602,13506,31465,28408,1930,25261,31163,2317,2654,1636,1102,32461,1740,2295,11181,23164,26101,9369,5414,5179,2957,1098,31741,14543,14364,16021,4723,5795,10274,29131,23904,1329,5792,13152,30048,1421,2292,4665,8181,1792,2161,1500,14196,13511,29239,11659,2530,1966,8731,24832,31939,11584,1265,1807,2409,1846,9032,9036,9033,14277,1046,13115,2956,1300,1273,1414,10547,28777,4321,2966,30862,22129,2190,14626,1230,3076,4873,30544,1393,1459,14428,22255,14133,24461,5390,1845,10945,1454,21264,8631,2236,11160,28546,2137,14260,29647,14322,11884,25300,1542,6794,23547,30424,2782,23619,15336,11472,10172,1854,29323,13490,13491,4726,15543,10638,1437,2589,31597,1399,10573,10377,29755,22540,27751,11143,18693,29797,17033,15291,15288,2062,2101,2902,8391,18675,16351,2254,12332,14199,16345,30042,4312,26794,26839,1201,24686,18258,16635,8939,8420,14739,1810,8878,1278,8325,13268,5099,9327,1962,16449,1379,11265,2287,2376,1680,8625,1797,16575,15102,13688,12830,4114,1384,1788,8918,1165,2277,1445,1713,13145,1071,1094,4199,1426,24230,13774,4266,1227,2909,1938,5615,2374,9289,10600,2104,2092,1606,1699,16799,11479,10059,1213,17108,1118,12896,28612,2245,1448,18297,31402,7522,16105,1875,23601,3479,1396,2347,1410,1332,4783,2804,16164,10774,27715,1575,17123,29869,1343,1425,18789,15366,10401,24443,9267,27880,2185,1415,2926,1199,23334,2080,25714,19920,9608,2022,2148,17226,11916,8701,14034,2632,1096,10006,13892,8393,9231,12498,1972,4663,30850,9881,1133,15414,1149,9135,14686,10816,25243,2885,9835,15393,2818,2626,1355,15805,12981,3766,2139,13526,1487,1095,23215,12986,8637,1173,5402,5692,24922,15937,1545,11790,4957,1953,17853,1376,22243,11401,9051,17958,1842,15411,11506,16687,16569,8755,4900,25696,2454,14682,10541,10120,3947,11517,8615,10898,11172,11496,10882,2367,1179,5441,18174,1377,12407,8624,19908,17235,32254,10579,2963,19314,1374,2199,14592,1369,1490,27676,29866,1417,5116,27613,1189,9307,14224,4396,18309,2362,23793,11260,11784,1132,1677,1130,26947,25966,4849,1336,12743,24008,20703,5776,2326,10190,1107,5798,13970,1438,12489,1392,7180,1109,7741,10623,30493,25621,1295,1461,11722,2091,24775,23859,28369,14630,13920,2723,3833,21105,9297,14683,11841,24281,12587,8456,11431,2208,5093,1209,2073,11698,9913,1338,10740,18015,24476,18903,1171,11250,30331,21249,14382,11874,23745,27661,1720,22183,13799,10931,1245,8897,1975,27727,27724,12794,20724,9149,31220,10770,10361,2593,18699,10367,11605,12812,10708,7535,11372,24179,1759,27691,10554,1157,4788,2020,25825,3132,1372,18066,8613,16623,12261,2419,16135,13133,14766,11248,5771,10081,23952,25678,2358,8714,8776,5863,29752,10198,10922,31154,1852,11438,24464,13851,4108,24524,29545,17373,2830,8492,10575,1315,2352,1288,2683,1294,5168,17364,5374,15664,1695,4803,2158,31082,3119,1326,13836,14127,8750,2806,2349,16336,2620,2233,4753,10671,2406,13986,7666,2202,10704,11571,23568,1557,29671,12404,2917,1912,9824,16509,16066,4024,5317,31798,2623,10145,4338,11520,27196,4910,10415,14150,23021,30595,23523,14078,14173,10162,1296,9318,25690,7688,18300,12687,13850,12323,18027,12813,4147,17325,28318,1450,1893,3103,10439,1362,1304,11191,29500,18756,3029,15694,10817,18255,1097,14245,14344,4118,9748,2445,1436,10256,10630,4120,28708,28705,9992,4981,21579,4879,10053,4677,1878,13557,21315,11493,5347,10741,4937,16138,28765,4378,10560,31807,29206,2256,15522,32479,10307,10364,842,18159,1197,34975,8900,14778,11889,15988,18405,18678,2581,14997,11473,11469,12972,1135,23293,1551,1945,8686,9123,1076,1281,8586,4732,5789,15808,1460,10064,10067,10436,28696,2529,8652,31205,1366,4399,1358,1333,17352,2017,15447,16173,9800,11653,26929,1155,1992,4381,2678,24428,1084,2293,8549,2533,11665,25213,4999,23616,1722,2795,16536,1385,1129,2840,4214,1927,12666,29896,1403,23499,2511,30751,12753,11342,1182,16578,3109,8950,17907,29551,3097,12255,14644,14772,2968,22042,8849,14670,11695,18489,1505,10612,13805,1451,9509,9216,9340,25210,1371,8744,10129,14185,17197,17027,28654,8834,1312,11411,9799,8773,1274,24838,2743,1117,18063,24149,10299,15090,5143,11021,2559,16407,27772,7702,2990,10515,10823,8124,13370,10259,27679,1744,2978,5612,8661,5701,1446,1806,1466,2448,2284,30340,10499,4180,15045,1423,13067,1484,7715,11883,10650,14757,10690,10142,27667,1342,4749,10801,8274,24847,8779,24850,8723,1207,2900,8664,10030,15661,10301,16608,13653,2224,14280,2043,13248,12660,12483,8499,30944,22728,22234,12321,8947,27694,2053,2899,13242,20688,2046,4934,11793,29635,11881,13203,13113,13110,4315,1498,4262,9161,9243,8923,10620,9056,2656,24248,3047,3044,14712,23511,1939,8558,10241,4695,10287,1248,2386,1153,1357,10765,10762,32992,21267,1428,9023,11235,11293,2424,24308,14449,14019,28477,1941,13265,10159,1687,2993,1496,25675,24737,11233,11000,1354,12710,16668,30529,1337,8092,12686,1103,24023,8765,8768,15063,15057,2335,28621,4169,4172,32485,8379,27202,30586,32305,1075,2848,14126,27346,11290,9059,1363,16342,11514,11051,1099,2058,1503,3553,13155,7658,2068,3196,20943,4930,24449,12726,1136,12797,1485,2217,1729,1258,14392,10020,30280,30448,17994,1783,1780,24766,25087,2538,4687,1351,28624,9820,1176,13895,14254,8321,24278,1320,1178,1323,2935,1284,18642,1365,3458,1464,11455,11432,14395,12996,5302,1884,2026,4982,10813,32509,14722,2059,3156,10771,5149,1361,2617,14513,1702,2412,2410,12719,30878,2166,10636,11692,11137,10858,27295,3112,1082,8459,4903,4246,4208,11256,13217,11599,2038,2008,1270,1785,12785,29542,8786,2230,12798,8403,8400,23706,2191,4383,1291,9691,9713,1411,2981,18147,24859,24862,13056,14588,15739,4275,2439,10026,18039,1603,30274,8544,28249,31160,26944,10635,1773,18018,2648,8001,23421,35432,8753,31786,11500,30481,30286,29935,2888,5822,1290,12333,12294,1215,6721,8556,24581,11291,1816,29779,15402,2809,14754,1857,1231,21366,19887,10969,30655,1881,23823,18471,1424,2118,5813,29770,12860,8121,1447,11029,1074,5825,1214,2413,28024,14452,13314,11184,10633,2451,3106,8214,5551,14488,27304,8628,15072,3082,1704,16671,1479,4854,14700,29326,1530,2433,18393,14719,1980,30911,11035,27163,17982,14534,1256,16748,4922,9280,13283,1318,1206,28738,985,1737,984,987,914,10316,1502,2085,1523,10909,1370,28225,2023,10912,8289,17946,16039,10879,2385,2382,11405,2134,5768,2837,33887,1340,30253,2675,15186,2106,13917,5098,30721,12983,8516,10244,10826,5719,13638,4987,27946,14160,15141,21892,21883,1429,19560,1216,1106,1279,14531,1987,10545,11422,1346,1128,1309,9155,14241,2932,2924,9448,8675,3007,28360,27631,25651,2077,2344,1244,1330,25855,2761,1639,8508,8822,1353,8271,4674,9269,4895,1114,1476,8819,8532,14527,11530,1388,1563,11152,11779,1335,9794,12426,1675,28564,1192,5432,1105,1789,1257,5399,17904,2628,1283,1170,1349,14627,14298,13611,30096,8564,9500,17979,9982,22624,3095,1402,23721,14582,2223,8797,8130,4933,1101,9502,9505,1313,2692,12678,2313,10731,8112,4365,10111,10001,3832,9292,1148,1959,10406,2325,10434,2662,2704,15567,10290,24575,5383,26743,1899,4341,11105,28372,5281,3917,5131,1144,2398,3446,9030,3449,15489,13184,1159,14024,1954,2698,2798,25303,2708,4669,2391,18930,10075,30343,2266,11329,16458,25006,16548,3016,24113,1413,3053,13538,3056,8914,4714,27100,1416,16497,24751,11674,22039,1516,13584,13220,19332,16545,10910,9400,12684,2882,2725,1348,30661,1,2815,30658,4857,1277,2767,8541,32506,35567,35564,35570,5779,2086,4390,18048,6704,29236,24200,13086,2915,1250,1226,2133,9213,12974,4901,4333,13106,1110,14124,31747,2671,12402,2756,12963,11253,5668,1434,4261,1567,4885,14356,1359,8373,23925,30872,4243,29884,1350,23688,24844,4969,8654,8666,1239,12455,10004,8782,5428,5003,19515,33199,5176,15688,28216,9955,14275,1249,2328,10469,2906,1707,8639,25195,2719,9038,10428,2083,12564,1911,4746,25753,2610,20502,3734,1224,11689,3126,4231,27385,1431,12263,1255,9015,1266,11650,4795,4632,1322,24931,1242,14769,25165,2143,8933,1644,11408,8450,1276,16680,9295,10153,2674,2115,10999,17129,18117,4945,4593,33941,10003,1517,11488,2710,1221,1161,10296,12503,24161,15501,18654,1457,9465,31130,27721,27310,13197,35561,34990,8622,1364,19884,2112,30865,9316,4618,2776,1089,2701,4925,2338,2746,14781,14401,1831,1200,14067,15748,27181,4960,1194,1236,11682,4918,1483,1280,2248,13235,22237,17862,4225,2960,1072,4978,14221,32251,30884,2660,16674,1175,1174,12290,4942,2800,1887,1088,1142,33001,9261,10828,10829,10987,14701,21642,10410,16702,1254,10551,1929,1888,8983,14647,13241,12722,28756,2278,14418,12690,9224,4741,4710,24167,1554,11559,4806,14579,1314,8568,8893,8831,16363,4708,1152,5812,2825,17796,1795,13287,4198,12903,2047,2172,4270,2749,2992,9198,11428,1156,15667,3472,1497,28996,4680,11802,4904,2687,1091,1777,11467,14716,2031,9045,1111,2037,9240,13275,14434,1548,9209,1909,8517,1741,1251,1747,11170,8097,4717,14397,10156,21916,30475,12399,1391,16665,27439,11452,15516,17880,1218,4250,4353,9952,9680,18102,11677,4273,28573,1526,13932,16078,10266,14371,2395,14763,16921,25315,5705,2801,15691,17283,24967,10843,11330,1205,2696,8327,13539,11853,5767,18111,1381,21372,5218,27337,27169,3129,2962,2056,28441,15315,10358,10133,4897,2041,1321,1442,13334,1533,2845,21696,5408,14468,14724,28717,10395,10975,14009,3040,21045,18624,5669,2737,2098,22465,1237,10728,10413,12314,2271,19380,16813,10051,25183,11341,13164,1767,21534,31822,2379,9367,10808,16410,11560,5854,25639,29968,8397,1368,18912,5155,4309,2500,23856,10201,2599,11526,9132,8546,15910,1435,10187,2586,2175,9394,3314,9074,2663,33917,30784,17391,17394,16239,28288,1307,27301,8462,1873,15054,24763,1119,5102,12765,27271,10871,1469,4402,14710,2657,16491,1821,2912,25120,2359,1210,1453,18645,1427,11399,1093,11511,3086,12285,4222,27073,1367,4329,4332,2972,18453,30691,28153,1465,4345,14236,8117,26845,17361,1920,1501,1289,16045,23928,1146,10942,2320,13127,4324,8523,4819,4755,2089,18450,1344,2518,1605,30271,29788,2221,1233,17343,3092,29656,5645,11878,33956,14328,26863,30445,8477,15219,20940,16252,8177,5027,5773,19899,13616,4302,1480,21778,2010,8505,1837,10033,1073,1373,1439,11871,29725,8670,1800,2205,9848,5654,3343,1185,14202,8399,4719,11557,1803,15570,12617,11508,10404,2004,2007,15234,28771,7198,1906,11404,11532,4389,2065,8322,12354,2131,15363,4111,1828,1475,11419,2572,8954,27718,1269,1998,1493,5810,13622,1870,7721,23883,24653,1083,8683,1813,26077,15339,24671,12239,11823,10862,15132,14031,24455,25963,9077,1184,1121,4816,20706,17472,1260,23727,1513,2508,12716,18948,27442,28297,29743,4377,26959,54,4259,5672,5674,10840,5695,11610,19017,12,11395,19614,9324,22318,4672,11026,9007,13533,14421,14715,13991,13902,5651,27913,32833,9887,19866) AND user_registered BETWEEN '2000-05-01 00:00:00'"); 

I also tried to check with last SQL but seemed to blank response /* From [yourmoneylidev.wpengine.com/wp-admin/admin-ajax.php] in [/nas/content/live/yourmoneylidev/wp-content/plugins/employee-dashboard/controller/shortcodeController.php:143] */

Leave a Comment