q select pid from dex_product where pid<>'20117' and ( pcharacter='' ) and pactivate='1' order by rand() limit 18 relate ,2930,5258,486,13041,14552,12605,6316,20485,5182,6626,4187,3019,1329,3347,14313,20921,4949,6569 Array ( [0] => 2930 [1] => 5258 [2] => 486 [3] => 13041 [4] => 14552 [5] => 12605 [6] => 6316 [7] => 20485 [8] => 5182 [9] => 6626 [10] => 4187 [11] => 3019 [12] => 1329 [13] => 3347 [14] => 14313 [15] => 20921 [16] => 4949 [17] => 6569 )