q select pid from dex_product where pid<>'20117' and ( pcharacter='' ) and pactivate='1' order by rand() limit 18 relate ,2678,7483,4422,21245,18190,1532,7903,6731,12483,6426,5803,9391,1564,4223,19744,7745,2019,22054 Array ( [0] => 2678 [1] => 7483 [2] => 4422 [3] => 21245 [4] => 18190 [5] => 1532 [6] => 7903 [7] => 6731 [8] => 12483 [9] => 6426 [10] => 5803 [11] => 9391 [12] => 1564 [13] => 4223 [14] => 19744 [15] => 7745 [16] => 2019 [17] => 22054 )