q select pid from dex_product where pid<>'22112' and ( pcharacter='' ) and pactivate='1' order by rand() limit 18 relate ,3200,11990,6473,19859,8251,23027,2560,23462,6417,23597,9389,5180,1315,10007,7461,22134,3165,9185 Array ( [0] => 3200 [1] => 11990 [2] => 6473 [3] => 19859 [4] => 8251 [5] => 23027 [6] => 2560 [7] => 23462 [8] => 6417 [9] => 23597 [10] => 9389 [11] => 5180 [12] => 1315 [13] => 10007 [14] => 7461 [15] => 22134 [16] => 3165 [17] => 9185 )