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 (13,15,16,40,47,65,70,74,99,134,132,144,164,166,181,184,194,210,213,220,226,253,277,296,322,324,329,352,360,361,362,364,367,368,374,379,415,416,453,456,279,466,467,470,472,486,488,491,492,493,495,500,501,503,512,514,515,572,574,580,585,586,589,591,593,596,642,644,675,677,689,690,727,736,737,738,741,742,743,744,599,745,748,749,753,795,812,816,828,830,833,837,846,857,859,861,864,866,871,877,884,889,907,908,924,927,932,934,943,949,951,955,962,966,979,995,1003,1013,1014,1015,1026,1027,1030,1041,1055,1059,1060,1061,1074,1075,1082,1090,1098,1099,1104,1119,1120,1124,1131,1132,1138,1140,1148,1151,1152,1154,1156,1163,1169,1174,1193,1207,1215,1223,1229,1236,1260,1261,1265,1280,1290,1299,1303,965,1316,1317,1342,1344,1345,1346,1350,1353,1358,1364,1368,1380,1396,1406,1412,1424,1431,1432,1436,1439,1441,1442,1452,1453,1456,1461,1466,1470,1474,1485,1493,1503,434,1520,1532,1536,1545,1546,1548,1556,1561,1564,1568,1570,1578,1583,1592,1596,1597,1608,1611,1616,1626,1633,1642,1667,1671,1720,1745,1746,1747,1750,1752,1756,952,1762,1763,1765,1772,1774,1775,1803,1817,1842,1847,1864,1876,1905,1923,1853,1970,1971,1974,1975,1982,1983,1987,2003,2004,2005,2035,2039,2043,2050,2052,2058,2066,2069,2077,2085,2087,2112,2116,2119,2120,2132,2133,2134,2140,2149,2155,2157,2162,2163,2174,2176,2185,2186,2187,2189,2192,2195,2206,2210,28,2226,2229,2232,2234,2235,2236,2237,2240,2244,2252,2253,2256,2263,2264,2265,2268,2272,2281,2283,2286,2288,2289,2296,2297,2298,2295,2304,2311,2316,2317,2318,2322,2328,2331,2337,2339,2342,) and g.domainID=120 ORDER BY rand() LIMIT 1
1: class.udb.php:326 udb::query()
2: search-results.php:792 udb::single_row()
3: index.php:284 include()