class.udb.php:184 You have an error in your SQL syntax; check the manual that corresponds to your MySQL 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,21,26,41,46,47,54,68,70,74,93,99,104,116,119,132,134,140,144,150,164,179,181,183,184,194,210,213,220,242,245,248,260,277,279,296,322,324,325,326,327,329,348,352,355,356,360,361,362,364,367,368,374,379,382,413,415,416,431,432,434,436,450,455,456,457,459,460,461,462,466,467,468,470,472,479,482,483,484,486,488,491,492,493,495,498,499,500,502,503,505,512,514,519,540,572,573,574,585,586,589,591,593,596,598,599,618,636,637,638,639,642,644,651,654,656,658,669,670,675,680,688,689,690,698,706,712,714,716,724,736,737,738,741,742,743,744,745,748,781,784,792,794,795,805,808,812,816,823,830,833,837,846,859,864,865,866,867,871,877,878,879,884,885,889,890,893,898,901,907,918,919,924,927,930,931,932,934,943,945,947,949,955,965,966,979,992,995,996,1001,1003,1004,1005,1008,1013,1014,1015,1026,1027,1029,1033,1034,1041,1059,1060,1061,1062,1066,1067,1082,1089,1095,1099,1103,1104,1106,1118,1119,1120,1123,1124,1131,1132,1138,1140,1144,1147,1148,1151,1152,1154,1156,1163,1168,1169,1172,1174,1175,1184,1191,1193,1207,1215,1216,1223,1229,1236,1260,1264,1265,1269,1280,1287,1290,1292,1295,1296,1299,1300,1303,1308,1310,1313,1314,1316,1317,1318,1319,1338,1340,1341,1342,1344,1345,1347,1349,1350,1351,1352,1353,1354,1358,1359,1360,1362,1364,1365,1374,1380,1387,1389,1395,1396,1402,1406,1407,1412,1419,1420,1421,1424,1432,1433,1436,1440,1441,1442,1443,1452,1453,1456,1458,1459,1461,1463,1465,1466,1468,1469,1472,1473,1474,1476,1481,1482,1483,1484,1485,1487,1493,1494,1495,1498,1499,1500,1503,1504,1512,) and g.domainID=6 ORDER BY rand() LIMIT 1
1: class.udb.php:326 udb::query()
2: search-results.php:573 udb::single_row()
3: index.php:264 include()