q select pid from dex_product where pid<>'20114' and ( pcharacter='' ) and pactivate='1' order by rand() limit 18 relate ,19696,1615,11196,6792,8284,18492,6439,2256,2691,7483,10998,2091,15723,5166,9751,3991,4958,2997 Array ( [0] => 19696 [1] => 1615 [2] => 11196 [3] => 6792 [4] => 8284 [5] => 18492 [6] => 6439 [7] => 2256 [8] => 2691 [9] => 7483 [10] => 10998 [11] => 2091 [12] => 15723 [13] => 5166 [14] => 9751 [15] => 3991 [16] => 4958 [17] => 2997 )