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 ') 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,74,93,116,119,134,132,157,166,179,181,184,210,211,213,220,242,277,296,324,325,326,329,352,360,361,364,368,379,382,387,415,416,428,456,457,279,459,460,461,466,467,470,472,479,482,486,488,491,492,493,495,500,502,503,512,514,585,586,587,589,591,593,642,644,651,662,670,675,677,686,688,689,690,697,698,727,736,737,738,741,742,743,744,745,748,752,753,769,793,794,795,812,828,830,833,837,846,857,859,864,866,877,884,889,890,907,924,927,932,945,949,951,952,955,962,966,995,1003,1014,1015,1026,1027,1031,1033,1041,1055,1059,1060,1061,1074,1075,1098,1099,1104,1119,1120,1124,1131,1132,1140,1148,1151,1152,1154,1156,1159,1163,1168,1169,1172,1174,1175,1193,1215,1223,1236,1260,1280,1287,1290,1303,965,1308,1316,1341,1342,1344,1345,1346,1347,1349,1350,1353,1354,1358,1364,1380,1389,1396,1406,1412,1419,1421,1424,1431,1432,1436,1441,1442,1452,1453,1456,1461,1466,1470,1474,1476,1482,1496,1499,1503,434,1514,1532,1534,1536,1544,1545,1546,1548,1561,1568,1570,1578,1583,1591,1592,1594,1596,1597,1587,1608,1610,1611,1612,1616,1626,1637,1667,1671,1720,1745,1746,1747,1750,1752,1756,1762,1763,1764,1765,1772,1774,1775,1791,1795,1803,1808,1817,1842,1850,1854,1858,1864,1883,1887,1889,1905,1923,1925,1936,1958,1970,1971,1972,1975,1981,1982,1983,1987,1988,2002,2035,2039,2050,2052,2058,2065,2066,2069,2077,2078,2085,2097,2105,2108,2112,2116,2127,2128,2132,2133,2138,2140,2144,2149,2155,2157,2162,2163,2164,2167,2168,2174,2176,2177,2179,2185,2189,2199,1320,2210,28,2218,2221,2222,2226,2229,2232,2235,2236,) ORDER BY rand() LIMIT 1
1: class.udb.php:326 udb::query()
2: personal_area.php:493 udb::single_row()
3: header.php:156 include()
4: index.php:284 include()