class.udb.php:184 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') and g.domainID=6 ORDER BY rand() LIMIT 1' at line 3
SELECT g.siteID, files.src
FROM `site_main_galleries` AS `g` INNER JOIN `pictures` USING(`galleryID`) INNER JOIN `files` ON (pictures.fileID = files.id)
WHERE g.siteID IN (13,15,16,74,93,116,119,134,132,184,220,226,242,296,324,325,329,352,360,361,364,368,382,387,415,416,436,456,457,279,458,459,460,461,464,466,467,470,472,479,482,488,491,492,493,495,500,502,503,514,515,585,586,589,591,593,642,644,669,670,144,688,690,737,738,741,742,743,744,753,793,812,830,833,837,857,866,877,884,907,924,927,943,945,949,955,966,979,995,1003,1014,1026,1027,1030,1033,1040,1041,1055,1060,1074,1075,1099,1104,1106,1120,1124,1132,1140,1148,1151,1152,1154,1163,1169,1174,1193,1197,1215,1219,1223,1236,1265,1290,1299,1303,965,1308,1316,1317,1342,1346,1347,1349,1350,1353,1354,1358,1364,1386,1396,1402,1406,776,1419,1421,1422,1424,1431,1436,1441,1442,1452,1453,1456,1461,1474,1351,1483,1493,1503,434,1514,1534,1536,1544,1545,1546,1548,1561,1568,1570,1578,1583,1591,1592,1596,1597,1608,1611,1616,1642,1667,1720,1745,1746,1747,1750,1752,1756,952,1762,1765,1772,1775,1791,1817,1829,1842,1850,1864,1876,1883,1905,1923,1958,1971,1975,1982,1983,1987,1988,2005,2039,2042,2050,2052,2058,2066,2085,2112,2120,2132,2133,2134,2138,2149,2155,2157,2163,2165,2174,2177,2178,2185,2189,2210,28,2229,2232,2235,2236,2240,2244,2251,2253,2256,2262,2265,2268,2281,2286,2296,2297,2298,2304,1520,2316,2318,2322,2337,2339,2342,2343,2344,2345,2347,2348,2351,2355,2361,2365,2372,2376,2377,2381,2393,2394,2402,2404,2407,2419,2422,2426,2435,2437,2439,2442,2448,2449,2450,2452,2456,2457,2460,2461,2466,2454,2474,2475,2476,2472,2481,2483,2489,2500,2513,2514,2520,2521,2522,2526,2528,2529,2532,2535,2539,2550,2557,2559,2560,) and g.domainID=6 ORDER BY rand() LIMIT 1
1: class.udb.php:326 udb::query()
2: search-results.php:1078 udb::single_row()
3: index.php:314 include()