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=120 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 (1,11,13,15,16,21,40,41,65,70,74,75,93,99,104,116,119,134,132,144,164,181,184,194,220,226,233,242,253,296,322,324,347,360,361,362,364,367,368,379,382,387,413,415,416,436,453,456,457,279,458,459,460,461,464,466,467,470,479,482,488,491,492,493,495,500,502,503,512,514,515,523,572,573,574,580,586,589,591,593,596,618,642,644,656,669,670,680,688,706,716,727,737,738,741,742,743,744,753,793,812,830,833,837,857,861,866,871,877,883,884,895,903,907,908,924,927,930,932,934,943,949,952,979,995,996,1003,1004,1008,1013,1014,1030,1041,1055,1059,1060,1074,1082,1093,1099,1104,1106,1124,1132,1138,1140,1148,1151,1152,1154,1163,1169,1174,1193,1197,1207,1215,1223,1229,1236,1290,1296,1299,1300,1303,965,1308,1316,1317,1342,1344,1346,1347,1349,1350,1351,1353,1354,1358,1364,1368,1374,1380,1386,1396,1402,1406,1412,1421,1422,1424,1431,1436,1441,1452,1456,1461,1474,1469,1483,1493,1499,1503,434,1514,1520,1521,1525,1536,1544,1545,1546,1549,1561,1568,1578,1583,1591,1592,1596,1597,1601,1605,1608,1611,1616,1633,1640,1642,1667,1701,1717,1720,1745,1746,1747,1750,1752,1756,1765,1772,1775,1784,1803,1805,1817,1829,1835,1842,1847,1848,1849,1850,1854,1864,1876,1905,1920,1925,1853,1950,1958,1971,1975,1977,1982,1983,1987,2003,2004,2005,2035,2039,2042,2043,2052,2054,2058,2066,2069,2078,2085,2112,2119,2122,2132,2133,2134,2138,2149,2150,2155,2157,2163,2174,2176,2177,2178,2185,2186,2189,2192,2197,2209,2210,28,2229,2232,2234,2235,2236,2240,2244,2253,2256,2262,2265,2268,2281,2283,2286,2288,2289,2296,2297,2298,2295,2304,2311,) and g.domainID=120 ORDER BY rand() LIMIT 1
1: class.udb.php:326 udb::query()
2: search-results.php:798 udb::single_row()
3: index.php:284 include()