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 (1,11,13,15,16,26,28,40,41,47,65,70,74,93,99,104,116,119,132,134,140,144,164,166,181,184,194,210,213,220,226,233,242,253,277,279,296,322,324,329,347,352,360,361,362,364,367,368,374,379,382,387,415,416,432,434,453,456,457,459,460,461,466,467,470,472,479,482,486,488,491,492,493,495,500,501,503,512,514,515,572,573,574,585,586,589,591,593,596,599,618,642,644,656,670,675,677,689,690,700,706,714,716,727,736,737,738,741,742,743,744,745,748,749,753,793,795,812,816,828,830,833,837,846,857,859,861,864,866,871,877,883,884,889,895,907,908,924,927,930,932,934,943,945,949,951,952,955,962,965,966,979,995,996,1003,1004,1008,1013,1014,1015,1026,1027,1030,1033,1034,1041,1055,1059,1060,1061,1074,1075,1082,1090,1098,1099,1104,1106,1119,1120,1124,1131,1132,1138,1140,1148,1151,1152,1154,1156,1163,1169,1172,1174,1193,1207,1215,1219,1223,1229,1236,1260,1261,1265,1280,1290,1296,1299,1300,1303,1308,1316,1317,1342,1344,1345,1346,1347,1349,1350,1351,1353,1354,1358,1364,1368,1374,1380,1396,1406,1412,1419,1421,1424,1431,1432,1436,1439,1441,1442,1452,1453,1456,1461,1466,1469,1470,1474,1483,1485,1493,1499,1503,1514,1520,1532,1534,1536,1544,1545,1546,1548,1549,1556,1561,1564,1568,1570,1578,1583,1587,1591,1592,1596,1597,1605,1608,1611,1616,1626,1628,1633,1642,1667,1671,1701,1720,1745,1746,1747,1750,1752,1756,1762,1763,1765,1772,1774,1775,1784,1791,1803,1805,1817,1842,1843,1847,1848,1849,1850,1853,1854,1858,1864,1876,1883,1905,1920,1923,1925,1950,1970,1971,1974,1975,1982,1983,1987,1988,2003,2004,2005,2035,2039,) 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:309 include()