q select pid from dex_product where pid<>'20116' and ( pcharacter='' ) and pactivate='1' order by rand() limit 18 relate ,9239,20127,2368,3881,6684,20190,6059,20353,5617,10713,4182,5770,5675,3303,9931,5800,5180,20304 Array ( [0] => 9239 [1] => 20127 [2] => 2368 [3] => 3881 [4] => 6684 [5] => 20190 [6] => 6059 [7] => 20353 [8] => 5617 [9] => 10713 [10] => 4182 [11] => 5770 [12] => 5675 [13] => 3303 [14] => 9931 [15] => 5800 [16] => 5180 [17] => 20304 )